summaryrefslogtreecommitdiff
path: root/utils
AgeCommit message (Collapse)AuthorFilesLines
2014-06-30make pep8 happy (again)Michael Vogt2-2/+2
2014-03-22utils/get_ubuntu_mirrors.py: Drop, its unused and brokenJulian Andres Klode1-57/+0
The Ubuntu wiki does not include a list of mirrors anymore.o
2014-03-16utils/get_*_mirrors*.py: Use sys.stderr.write instead of printJulian Andres Klode2-4/+4
pyflakes does not handle from __future__ import print_function, so work around it.
2014-03-16utils/get_*_mirrors*.py: Ensure failure if no mirrors were readJulian Andres Klode2-2/+15
This ensures that we do not accidentally build a package without a mirror list, just because the servers have some error or empty file which we do not know about (for example, Launchpad may have a 503, and we would not notice).
2014-01-26utils/doclint.py: Drop, not working anymore.Julian Andres Klode2-97/+14
Sphinx changed its pickle format some time ago, so this script does not work anymore
2014-01-05make test_pep8.py passMichael Vogt2-9/+14
2014-01-05make pyflakes cleanMichael Vogt2-3/+0
2013-10-14utils/get_ubuntu_mirrors_from_lp.py: Switch to Python 3 againJulian Andres Klode1-1/+1
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-254/+0
2012-06-22* utils/get_ubuntu_mirrors_from_lp.py:Julian Andres Klode1-1/+1
- Revert move to Python 3, python3-feedparser is not in the archive yet
2012-06-11drop the unnecessary use of .keys() here, thanks Barry\!Steve Langasek1-1/+1
2012-06-11utils/get_ubuntu_mirrors_from_lp.py: move this script to python3Steve Langasek1-6/+5
2011-08-11* utils/get_ubuntu_mirrors_from_lp.py:Michael Vogt1-0/+1
- add "mirror://mirrors.ubuntu.com/mirrors.txt" to the default mirror list
2011-05-27utils/get_debian_mirrors.py: webml must be webwmlJulian Andres Klode1-1/+1
2011-05-27utils/get_debian_mirrors.py: Adjust for new Alioth SCM urlsJulian Andres Klode1-2/+3
2011-01-10merged lp:~geser/ubuntu/natty/python-apt/build-with-py3.2 (manually as bzr ↵Michael Vogt1-1/+1
thinks the branches have nothing in common)
2010-07-05Re-enable Python 3 support for latest python-default changes (hack).Julian Andres Klode1-0/+2
2010-06-01utils/get_debian_mirrors.py: ignore mirrors without a countyMichael Vogt1-0/+2
2010-03-29do not require files to end in .py if they are passed on the commandJulian Andres Klode1-1/+4
line or if they contain python somewhere in the shebang line.
2010-03-29Don't abort if parsing failed.Julian Andres Klode1-1/+6
2010-03-29Add has_key to the list of deprecated functions.Julian Andres Klode1-1/+1
2010-03-29utils/migrate-0.8.py: Open files in universal newline support and pass ↵Julian Andres Klode1-1/+1
filename to ast.parse.
2010-03-08* utils/get_ubuntu_mirrors_from_lp.py:Julian Andres Klode1-1/+1
- Sort the mirror list of each country.
2010-03-08* utils/get_debian_mirrors.py:Julian Andres Klode1-57/+21
- Parse Mirrors.masterlist instead of the HTML web page.
2010-03-03* Merge with Ubuntu:Julian Andres Klode1-58/+14
- util/get_ubuntu_mirrors_from_lp.py: + rewritten to use +archivemirrors-rss and feedburner - pre-build.sh: update ubuntu mirrors on bzr-buildpackage (and also do this for Debian mirrors) - add break for packagekit-backend-apt (<= 0.4.8-0ubuntu4)
2010-02-27Ship the list of deprecated things in the apt_pkg and apt_inst modulesJulian Andres Klode1-55/+76
inside the script itself, so we don't have to parse the source code anymore.
2010-02-07* utils/migrate-0.8.py:Julian Andres Klode1-3/+5
- Improve C++ parsing and add apt.progress.old to the modules, reduces false positives.
2009-07-24utils/doclint.py: Add a script to check the documentation.Julian Andres Klode1-0/+77
2009-06-14Merge version 0.7.10.4 from debian-sidJulian Andres Klode1-6/+7
2009-06-07utils/get_debian_mirrors.py: updated to support current mirror page.Otavio Salvador1-6/+7
2009-06-04utils/migrate-0.8.py: Handle constants in the apt_pkg extension.Julian Andres Klode1-0/+14
2009-06-03utils/migrate-0.8.py: Fix function detection.Julian Andres Klode1-1/+8
2009-04-24* utils/migrate-0.8.py: Add a warning that there may be false positives.Julian Andres Klode1-4/+5
2009-04-24* utils/migrate-0.8.py: Correctly import modules, improve attribute detectionJulian Andres Klode1-5/+7
In order to import modules from a package, 'fromlist' may not be empty. Therefore, we pass ['*'] now. When attributes where checked, we just checked their names and did not check their classes. This meant that in e.g. Compat-API: A.alpha, B.alpha Clean-API: A.alpha The attribute 'alpha' would not be considered deprecated because it is provided by A.alpha. Now we treat an 'alpha' attribute as deprecated, if at least one class loses it.
2009-04-24* utils/migrate-0.8.py: Fix detection of functions, methods and attributes.Julian Andres Klode1-1/+1
There was a problem in find_deprecated_cpp() which added '.' to the module-level functions. Caused by a missing 'not'.
2009-04-20* utils/migrate-0.8.py: Handle attributes specially, reduces false positives.Julian Andres Klode1-4/+9
We now prefix attributes with ., so we do not match global variable names when checking. This should reduce the number of false positives in some applications.
2009-04-20* utils/migrate-0.8.py: Helper to check Python code for deprecated ↵Julian Andres Klode1-0/+194
functions, attributes, etc. Has to be run from the python-apt source tree, but can be used for all Python code using python-apt. The output may not be completely correct, but false positives are better than not checking the code.
2008-08-08'mapping.has_key' is deprecated, use current Python 'key in mapping' idiom.Ben Finney1-1/+1
2008-05-16Fix code indentation to 4 spaces, to conform with PEP 8.Ben Finney1-4/+4
2008-05-16Fixes to blank lines, to conform with PEP 8.Ben Finney3-2/+5
2008-05-16Remove trailing whitespace.Ben Finney4-18/+18
2007-04-02* only include ftp and http mirrors for Ubuntu - LP#99060Sebastian Heinlein1-3/+5
* update the debian changelog
2007-04-01* Update the Debian and Ubuntu mirrorsSebastian Heinlein1-2/+3
* Fix the parsing of a changed Launchpad mirror site
2007-01-19* rename aptsources to sourceslist (aptsources is already used by theSebastian Heinlein2-3/+4
package, since the other parts were moved away this file only contains sources.list parsing and manipulating only) * rename get_ubuntu_lp_mirror to get_ubuntu_mirrors_from_lp (should be clearer) * fix some imports
2007-01-08* add a tool to find the best mirror (needs to be integrated into theSebastian Heinlein1-0/+99
ui)
2007-01-04* use uppercase letters for the country codeSebastian Heinlein2-5/+5
* change description of the lp mirror fetch tool
2007-01-04* add a script to extract the mirror information from launchpadSebastian Heinlein1-0/+85
* update the Ubuntu mirror list using the above script
2007-01-03* also parse te location of a Debian mirror in the helper scriptSebastian Heinlein1-2/+7
* update the Debian mirrors file with location infromation
2006-11-28* Since 3.1 we don't have to care anymore for Debian non-usSebastian Heinlein1-15/+0
2006-11-28* add a script to fetch a list of Debian mirrors from the InternetSebastian Heinlein1-0/+81