Commit Graph

29 Commits

Author SHA1 Message Date
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 5872c32060 debian/bin/buildcheck.py: Interpret ABI patterns more conventionally
Currently '*' and '**' match at least one character.  Change them to
match zero or more characters, as in shell patterns.

'*' matches anything but '!', but that has no special meaning in
symbol names or module filenames.  Change it to match anything but
'/', as in shell patterns.
2017-10-13 01:39:24 +01:00
Roger Shimizu 8d9993070b buildcheck.py: Add check for uncompressed Image size
Currently only armel/marvell flavour need this check
2017-09-02 00:30:02 +09:00
Ben Hutchings 2661eeaf78 debian/bin/buildcheck.py: Add check for symbols with version CRC of 0 2016-12-02 02:49:08 +00:00
Ben Hutchings dbe3ca8808 debian/bin/buildcheck.py: Adjust for compatibility with Python 3
Use dict.values() instead of .itervalues().
2015-10-05 21:21:33 +01:00
Ben Hutchings 52d8c20b40 debian/bin/buildcheck.py: Correct call to nonexistent sys.write() function 2015-08-29 23:59:26 +01:00
Ben Hutchings 6b977589fb debian/bin,debian/control,debian/lib/python: Use Python 3 2015-08-29 21:48:39 +01:00
Ben Hutchings 10f7943320 Merge changes from sid up to 3.16.7-ckt4-1
svn path=/dists/trunk/linux/; revision=22265
2015-01-16 02:43:15 +00:00
Ian Campbell bbecbd8cc4 [armel] Warn if image size leaves less than 1% spare capacity in the flash.
This allows some slack for growth over the lifetime of a stable release.

svn path=/dists/sid/linux/; revision=22203
2014-12-19 08:49:43 +00:00
Ben Hutchings eb1f86e012 Fix inconsistent ABI name generation in debian/bin/{abiupdate,buildcheck,gencontrol}.py (Closes: #773233)
svn path=/dists/sid/linux/; revision=22199
2014-12-15 22:01:58 +00:00
Ben Hutchings c853385790 [armel] Include size of appended DTBs in image size check
svn path=/dists/trunk/linux/; revision=22184
2014-12-10 16:50:18 +00:00
Ben Hutchings af6c30e62e Declare [image]check-size as integer in config schema
svn path=/dists/trunk/linux/; revision=22183
2014-12-10 16:37:52 +00:00
Bastian Blank 4295eeaea6 debian/bin/buildcheck.py, debian/bin/gencontrol.py: Support Python 3
svn path=/dists/trunk/linux/; revision=21047
2014-02-15 09:44:36 +00:00
Ben Hutchings 4f224fc29b Merge changes from sid up to 3.11.7-1
svn path=/dists/trunk/linux/; revision=20787
2013-11-10 05:40:33 +00:00
Ben Hutchings cc34c3daef Fix path to ABI reference file for build check
This has been broken since the changes to version mangling for 3.1.

svn path=/dists/trunk/linux-2.6/; revision=18641
2012-01-27 04:59:27 +00:00
Bastian Blank a4a27ffb31 debian/bin: PEP8 and other style fixes.
svn path=/dists/trunk/linux-2.6/; revision=18489
2012-01-11 17:00:17 +00:00
Bastian Blank eb7fcd24f3 debian/bin/buildcheck.py
- Use stricter pattern patch.
- Support pattern for module matches.

svn path=/dists/sid/linux-2.6/; revision=15913
2010-06-27 13:31:54 +00:00
Bastian Blank 70f4db9e45 debian/bin/buildcheck.py: Fix config mergeing.
svn path=/dists/sid/linux-2.6/; revision=15443
2010-03-21 17:42:55 +00:00
Bastian Blank 0884591082 debian/bin/buildcheck.py: Support module ignore matching.
svn path=/dists/sid/linux-2.6/; revision=15441
2010-03-21 12:50:40 +00:00
Bastian Blank d3bbe78347 debian/bin/buildcheck.py: Support different ignore types.
svn path=/dists/sid/linux-2.6/; revision=15440
2010-03-21 12:45:22 +00:00
Bastian Blank 9995fd5f3f debian/bin/buildcheck.py: Use sorted function.
svn path=/dists/sid/linux-2.6/; revision=15439
2010-03-21 12:29:59 +00:00
Bastian Blank d59af98a3b debian/bin/buildcheck.py: Simplify symbols data handling.
svn path=/dists/sid/linux-2.6/; revision=15438
2010-03-21 12:22:34 +00:00
Ben Hutchings b575145097 Merge /dists/sid/linux-2.6.
This should include all changes up to 2.6.31-2, except patches merged upstream.
Fix up ARM patches to apply to 2.6.32.

svn path=/dists/trunk/linux-2.6/; revision=14642
2009-11-17 01:18:56 +00:00
Bastian Blank 9e6796a8c6 * debian/bin/buildcheck.py: Rewrite complete symbol check.
* debian/lib/python/debian_linux/abi.py: Cleanup.

svn path=/dists/trunk/linux-2.6/; revision=13956
2009-07-17 14:01:24 +00:00
Martin Michlmayr 88657e0346 show size even when image fits
svn path=/dists/trunk/linux-2.6/; revision=13156
2009-03-17 17:35:04 +00:00
Bastian Blank c4d595ff1a * debian/bin/buildcheck.py
- Move from debian/bin/abicheck.py.
  - Extend to do all kind of build checks.
  - Add optional check for image size.
* debian/changelog: Update.
* debian/rules.real: Use debian/bin/buildcheck.py.

svn path=/dists/trunk/linux-2.6/; revision=12830
2009-02-18 14:17:21 +00:00