Ben Hutchings
98cbc347d3
debian/bin: Fix Python static checker regressions ( Closes : #928618 )
2019-05-07 21:04:05 +01:00
Ben Hutchings
e3c916c6d7
debian/bin/abiupdate.py: Change default URLs to use https: scheme
...
Since we don't use the Release and Packages files to verify the
packages we download, it's worth using TLS to reduce the risk of
a man-in-the-middle corrupting them.
ftp.ports.debian.org and security.debian.org don't support TLS
in general, so use deb.debian.org for the ports and security
archives.
2019-03-18 23:11:23 +00:00
Ben Hutchings
0e10941761
debian/bin/abiupdate.py: Automatically select the correct archive to fetch from
...
If the changelog distribution is *-security, fetch from the security
archive. Otherwise, try the main archive, ports, incoming, and
incoming.ports in that order.
2019-03-18 22:53:16 +00:00
Ben Hutchings
a54c09f109
Fix pycodestyle "line break after binary operator" warnings
2018-12-28 15:35:38 +00:00
Ben Hutchings
8cafaf07ae
debian/bin, debian/lib/python: Delete write-only vars reported by pyflakes
2018-10-01 21:50:59 +01: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
6033fc28e8
debian/bin: Change "#!/usr/bin/env python3" to "#!/usr/bin/python3"
2018-08-25 23:19:09 +01:00
Ben Hutchings
30fe681bff
abiupdate.py: Add support for security mirrors
2018-01-12 02:36:06 +00:00
Ben Hutchings
2c8163e1f1
abiupdate.py: Add support for incoming.ports.debian.org
2017-01-07 18:00:21 +00:00
Ben Hutchings
2ee6bc5ea0
abiupdate.py: Update base URLs
...
- incoming.debian.org now uses pool layout
- deb.debian.org is a better default than ftp.de.debian.org
- ftp.debian-ports.org redirects to ftp.ports.debian.org, so use the
latter directly
2017-01-07 17:57:38 +00:00
Ben Hutchings
f3ddd1118d
abiupdate.py: Use current config instead of downloading previous config
...
Until we authenticate downloads we should not do this as pickle.load
allows running arbitrary code.
2017-01-07 17:43:24 +00:00
Ben Hutchings
6ad80b7201
abiupdate.py: Drop import fallback for Python 2 compatibility
2017-01-07 17:41:44 +00:00
Ben Hutchings
87a5fb1450
Remove all support for monolithic kernel packages
...
The last such package (s390-tape variant) was removed in
3.6.8-1~experimental.1.
2016-01-27 19:52:48 +00:00
Ben Hutchings
6b977589fb
debian/bin,debian/control,debian/lib/python: Use Python 3
2015-08-29 21:48:39 +01: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
Bastian Blank
40b1508b4e
debian/bin/abiupdate.py: Add support for Python 3.
...
svn path=/dists/trunk/linux/; revision=20944
2014-01-01 13:11:15 +00:00
Bastian Blank
96b45e1593
debian/bin/abiupdate.py: Catch errors to retrieve package with config.
...
svn path=/dists/sid/linux-2.6/; revision=18824
2012-03-12 22:09:20 +00:00
Ben Hutchings
221a989e1c
Fix speling
...
svn path=/dists/trunk/linux-2.6/; revision=18640
2012-01-27 03:53:03 +00:00
Ben Hutchings
1c40df1f3c
Fix superclass call from url_debian_ports_pool.__call__
...
This is actually dead code. but Thorsten Glaser spotted the bug anyway.
svn path=/dists/trunk/linux-2.6/; revision=18639
2012-01-27 03:52:10 +00:00
Ben Hutchings
6e00b45f9b
Add support for getting ABI information from debian-ports
...
svn path=/dists/trunk/linux-2.6/; revision=18637
2012-01-26 05:27:39 +00:00
Ben Hutchings
140862fc78
Fix main invocation following PEP-8 name changes
...
svn path=/dists/trunk/linux-2.6/; revision=18636
2012-01-26 05:08:33 +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
Ben Hutchings
625c22fa59
Change abiupdate.py to use the new kernel ABI version definition
...
svn path=/dists/sid/linux-2.6/; revision=18370
2011-12-10 04:12:40 +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
ba1ffa147c
debian/bin/abiupdate.py: Adopt changes.
...
svn path=/dists/trunk/linux-2.6/; revision=13958
2009-07-17 14:07:05 +00:00
Maximilian Attems
f7c50a1460
Revert "debian/bin, debian/lib: Infrastructure was declared irrelevant, drop it."
...
as announced revert trunk sabotage
This reverts commit ccf3463f401b082e89a76d3475eff5b30c05622a.
svn path=/dists/trunk/linux-2.6/; revision=11215
2008-05-01 07:54:28 +00:00
Bastian Blank
fb5a6dc08c
debian/bin, debian/lib: Infrastructure was declared irrelevant, drop it.
...
svn path=/dists/trunk/linux-2.6/; revision=11213
2008-04-27 06:26:15 +00:00
Bastian Blank
e438274bc0
Merge /dists/sid/linux-2.6.
...
svn path=/dists/trunk/linux-2.6/; revision=10203
2008-01-26 09:57:03 +00:00
Bastian Blank
b4308079b0
* debian/bin/abicheck.py, debian/bin/abiupdate.py: Use config dump.
...
* debian/bin/gencontrol.py
- Read real config.
- Write version infos into config.
- Generate config dump.
* debian/changelog: Update.
* debian/lib/python/debian_linux/config.py: Support config dumps.
* debian/lib/python/debian_linux/gencontrol.py
- Don't specify type of config.
- Split result writing.
* debian/rules: Remove dumped config.
* debian/rules.real
(install-support)
- Install only dumped config.
- Don't install recursive.
svn path=/dists/trunk/linux-2.6/; revision=9664
2007-10-14 14:29:07 +00:00
Bastian Blank
c35314ff94
debian/bin/abicheck.py, debian/bin/abiupdate.py: Move abifiles to debian/abi.
...
svn path=/dists/trunk/linux-2.6/; revision=9658
2007-10-14 00:53:38 +00:00
Bastian Blank
411a3fcd6a
debian/bin/abiupdate.py: Use featureset.
...
svn path=/dists/trunk/linux-2.6/; revision=9656
2007-10-14 00:35:40 +00:00
Bastian Blank
8b73e8befb
Merge /dists/sid/linux-2.6.
...
svn path=/dists/trunk/linux-2.6/; revision=9529
2007-09-16 10:29:09 +00:00
Bastian Blank
d266b58f74
* debian/bin/abicheck.py, debian/bin/abiupdate.py, debian/bin/gencontrol.py
...
debian/bin/kconfig.py, debian/modules/gencontrol.py,
debian/templates/patch.apply.in: Use default python.
* debian/rules.real: Use python-central.
* debian/templates/control.main.in: Depend against python.
* debian/templates/control.source.in
- Build depend against python and python-central.
- Setup new python support.
* debian/templates/control.support.in: Setup python support.
svn path=/dists/trunk/linux-2.6/; revision=9485
2007-09-10 10:40:50 +00:00
Bastian Blank
236826c2eb
* debian/config: Move from debian/arch.
...
* debian/bin/abicheck.py, debian/bin/abiupdate.py, debian/bin/kconfig.py,
debian/lib/python/debian_linux/gencontrol.py, debian/rules,
debian/rules.real: Use debian/config instead of debian/arch.
svn path=/dists/trunk/linux-2.6/; revision=9187
2007-07-24 18:31:40 +00:00
Bastian Blank
a09633e05d
Merge /dists/sid/linux-2.6.
...
svn path=/dists/trunk/linux-2.6/; revision=9120
2007-07-11 12:27:16 +00:00
Bastian Blank
da3eeeecf6
Merge /dists/sid/linux-2.6.
...
svn path=/dists/trunk/linux-2.6/; revision=8499
2007-04-24 07:01:08 +00:00
Bastian Blank
f50a81b018
debian/bin/abiupdate.py: Make it possible to retreive packages from incoming.
...
svn path=/dists/trunk/linux-2.6/; revision=7717
2006-11-08 10:49:56 +00:00
Bastian Blank
e3afc0557a
debian/bin/abicheck.py, debian/bin/abiupdate.py,
...
debian/lib/python/debian_linux/abi.py: Support updated version description.
svn path=/dists/trunk/linux-2.6/; revision=7703
2006-11-06 13:23:55 +00:00
Bastian Blank
61c4bbd140
Merge /dists/sid/linux-2.6.
...
svn path=/dists/trunk/linux-2.6/; revision=7262
2006-08-29 09:53:31 +00:00
Bastian Blank
a3da57a52d
debian/bin/abiupdate.py: Read informations from the changelog.
...
svn path=/dists/trunk/linux-2.6/; revision=7023
2006-07-15 15:27:53 +00:00
Bastian Blank
61742ae0f5
debian/bin/abiupdate.py: Update logging.
...
svn path=/dists/trunk/linux-2.6/; revision=7019
2006-07-15 15:18:20 +00:00
Bastian Blank
2f2f58af16
debian/bin/abiupdate.py: Add.
...
svn path=/dists/trunk/linux-2.6/; revision=6995
2006-07-13 10:54:20 +00:00