Commit Graph

18 Commits

Author SHA1 Message Date
Ben Hutchings 98cbc347d3 debian/bin: Fix Python static checker regressions (Closes: #928618) 2019-05-07 21:04:05 +01:00
Vagrant Cascadian 58ef63e9e2 debian/bin/gencontrol_signed.py: Sort list of modules before adding to
.json file, fixing reproducibility issues.
2019-04-17 19:51:35 +00:00
Ben Hutchings 1dc1f9d062 debian/bin/gencontrol_signed.py: Use merge_packages instead of open-coding it
We already used it for udebs but not for the regular signed image
package.
2019-03-11 01:20:40 +00:00
Ben Hutchings 4454021eb3 debian/bin/gencontrol_signed.py: Put all files.json fields under "packages"
Follow the schema change made in
3a07a08a82
2019-03-10 22:46:07 +00:00
Ben Hutchings a54c09f109 Fix pycodestyle "line break after binary operator" warnings 2018-12-28 15:35:38 +00:00
Ben Hutchings 169ec06045 debian/bin, debian/lib/python: Clean up imports based on pyflakes report
- Add explicit imports for all needed modules, rather than indirectly
  (accidentally!) importing them with "from ... import *"
- Replace all "from ... import *" statements, which inhibit static
  checking, with explicit lists of names to import
- Delete the remaining unneeded imports reported by pyflakes
2018-10-01 21:45:55 +01:00
Ben Hutchings 9cfb948048 debian/bin, debian/rules.real: Add symlink to Python package directory instead of editing path
This fixes one of the remaining classes of pycodestyle errors.
2018-10-01 21:41:58 +01:00
Ben Hutchings af0098b10a debian/bin, debian/lib/python: Fix most errors reported by pycodestyle
Fix coding style violations reported by pycodestyle.  This is
mostly a matter of reformatting code, particularly to eliminate
over-long lines.  I also rename one variable ("l" is considered
visually ambiguous) and change a bare "except" to explicitly
catch all exceptions.

There are three types of error or warning remaining:

- debian/bin/...: E402 module level import not at top of file
  Scripts in debian/bin need to modify the import path before
  importing from debian/lib/python.
- E127 continuation line over-indented for visual indent
  This seems to be a false positive.  pycodestyle doesn't seem to be
  happy with any level of indent (including 0) on a continuation line
  in a "with" statement.
- debian/lib/python/debian_linux/debian.py:15:2: W291 trailing whitespace
  This is a false positive.  The trailing spaces are in a long
  string and are intentional.
2018-10-01 21:41:23 +01:00
Ben Hutchings 4b57c92b63 linux-image-*-signed-template: Override lintian warnings about non-executable scripts
The scripts in question are maintainer scripts in a source package
(that happens to be inside a binary package) and shouldn't be
executable until they are installed into a new binary package.
2018-09-13 11:19:42 +01:00
Ben Hutchings 6cfab0cf13 gencontrol_signed.py: Add package_dir attribute for template package dir 2018-09-13 11:19:42 +01:00
Ben Hutchings 6854f1871e gencontrol_signed.py: Add template package name to self.vars 2018-09-13 11:19:42 +01:00
Ben Hutchings cbebd8c763 udeb: Merge configuration directories and files across architectures
Merge the configuration and default-configuration directories,
using per-architecture overrides in package-list.

This requires a newer version of kernel-wedge to support
Depends_<arch> properly.

The only immediate change to debian/control is to remove the
different description for nic-modules on sparc64.
2018-09-03 18:01:21 +01:00
Ben Hutchings 1dce7a1eb1 gencontrol_signed.py: Fix silly errors in certificate fingerprint handling
I thought I had tested my previous changes, but evidently not.

- Fix syntax error in assertion
- Add digest algorithm argument to get_cert_fingerprint() call
2018-08-26 20:50:56 +01:00
Ben Hutchings 5254e35d9d debian/bin/gencontrol_signed.py: Add certificate fingerprints to template metadata
The signing service will check which certificates we trust, in order
to avoid mistakenly creating a chain of trust to a test signing key.
2018-08-03 15:44:35 +08:00
Bastian Blank 4739547302 Write a complete changelog to signing template 2018-05-29 10:27:27 +02:00
Ben Hutchings e85bd66dc5 debian/bin/gencontrol_signed.py: Copy maintainer and date into template's changelog 2018-04-08 10:31:20 +02:00
Ben Hutchings 9f8aafcd1f debian/bin/gencontrol_signed.py: Make valid native version for signed source
dpkg-source strictly enforces that 3.0 (native) packages do not have
Debian revisions in their version strings, i.e. they cannot include
hyphens.

Replace the hyphen from the image binary version with a '+'.

Override this version back to what we want when building the signed
binary packages.
2018-04-08 10:31:20 +02:00
Ben Hutchings be394a26da Add template source package to support code signing 2018-04-08 10:31:20 +02:00