summaryrefslogtreecommitdiff
path: root/aptsources/distro.py
AgeCommit message (Collapse)AuthorFilesLines
2014-10-24Merged UbuntuRTMDistribution detection from ubuntuMichael Vogt1-0/+34
* Add template for the "Ubuntu-RTM" derived distribution. * Detect whether a system is running Ubuntu-RTM by way of "system-image-cli -i". Not perfect but close enough.
2014-06-30make pep8 happy (again)Michael Vogt1-21/+21
2014-01-06Style fix: Do not use "is True" / "is False"Julian Andres Klode1-13/+13
This is uncommon style. It's better to use "pred" instead of "pred is True" and "not pred" instead of "pred is False".
2014-01-05make test_pep8.py passMichael Vogt1-22/+23
2013-05-08merged from experimental and uploaded to sidMichael Vogt1-2/+6
2013-04-30* aptsources/distro.py:Michael Vogt1-2/+3
- include the missing ID in the NoDistroTemplateException() error, thanks to Brian Murray
2013-03-13python2.6 compat fixesMichael Vogt1-0/+4
2012-11-20aptsources/distro.py: Replace the deprecated getiterator() ElementTreeMartin Pitt1-1/+1
method with iter(), to avoid raising a PendingDeprecationWarning.
2012-11-19* aptsources/distinfo.py, aptsources/distro.py, aptsources/sourceslist.py,Colin Watson1-1/+1
tests/test_apt_cache.py, tests/test_debfile_multiarch.py: - Use logging.warning rather than the deprecated logging.warn.
2012-06-12cherry pick r472 from lp:~ubuntu-core-dev/python-apt/ubuntu (thanks Colin!)Michael Vogt1-2/+4
2012-06-12aptsources/*.py, setup.py: Make aptsources modules work directly inColin Watson1-2/+4
either Python 2 or 3, and exclude the "future" 2to3 fixer so that 2to3 doesn't need to modify them. This makes life a little easier for the strange tricks update-manager plays with its dist-upgrader tarball.
2012-01-10pyflakes fixesMichael Vogt1-3/+1
2011-12-19pyflakes cleanup, use apt_pkg.gettext in aptsources tooMichael Vogt1-3/+1
2011-09-28add concept of "ParentComponent" for e.g. ubuntu/multiverseMichael Vogt1-2/+12
that needs universe enabled as well (plus add test) LP: #829284
2011-04-12releasing version 0.7.100.3ubuntu4Stéphane Graber1-0/+3
2010-10-18fix compat issues with python3Michael Vogt1-2/+3
2010-09-13* data/templates/Ubuntu.info.in:Michael Vogt1-0/+1
- add extras.ubuntu.com and archvie.canonical.com to the templates * aptsources/distinfo.py, aptsources/distro.py: - support non-official templates (like extras.ubuntu.com)
2010-03-01Style fixes.Julian Andres Klode1-0/+2
2010-02-13* aptsources/distro.py:Julian Andres Klode1-2/+2
- Call lsb_release with -idrc instead of --all.
2010-01-17aptsources/distro.py: Support Python 3, decode lsb_release results using utf-8.Julian Andres Klode1-0/+2
2010-01-17aptsources: Make all classes subclasses of object.Julian Andres Klode1-1/+1
2009-08-02Only recommend lsb-release instead of depending on it. Default toJulian Andres Klode1-6/+19
Debian unstable if lsb_release is not available.
2009-07-13* aptsources/distro.py:Michael Vogt1-2/+2
- fix indent error that causes incorrect sources.list additons (LP: #372224)
2009-04-01* Copyright updates: debian/copyright, etc.Julian Andres Klode1-2/+2
- debian/copyright: Switch to machine-interpretable copyright - apt/*.py: Fix the copyright years and comments.
2009-01-22apt/debfile.py, aptsources/distro.py: Fix stylingJulian Andres Klode1-16/+17
This fixes some styling issues.
2009-01-22fix incorrect indent Michael Vogt1-30/+30
2009-01-21* aptsources/distro.py:Michael Vogt1-13/+16
- use iso_3166.xml instead of iso_3166.tab * debian/control: - add Recommends to iso-codes (for iso_3166.xml)
2009-01-21aptsources/distro.py: fix fallout from the indent changesMichael Vogt1-63/+62
2009-01-13* apt/package.py:Michael Vogt1-10/+14
- fix bug in candidateInstalledSize property * aptsources/distinfo.py: - fix too restrictive mirror url check * aptsources/distro.py: - only add nearest_server and server to the mirrors if they are defined
2009-01-12Cleanup: Comparisons to True/False, ==/!= None, deprecated modulesJulian Andres Klode1-7/+6
2009-01-11* Merge Ben Finney's do not use has_key() (Closes: #481878)Julian Andres Klode1-6/+6
A little bit adjusted to not remove the has_key() methods, and to use has_key() where needed [the low-level part does not have the needed functionality for 'key in mapping'].
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode1-368/+384
2009-01-11aptsources/distro.py: No deprecated form of raise statementJulian Andres Klode1-2/+2
2009-01-09Cleanup: Remove whitespace at the end of line in all python codes.Julian Andres Klode1-26/+26
2009-01-08* aptsources/distinfo.py:Michael Vogt1-11/+14
- fix too restrictive mirror url check * aptsources/distro.py: - only add nearest_server and server to the mirrors if they are defined
2008-11-10* aptsources/distro.py:Michael Vogt1-6/+13
- add parameter to get_distro() to make unit testing easier * tests/test_aptsources_ports.py: - add test for arch specific handling (when sub arch is on a different mirror than "main" arches)
2008-08-08'mapping.has_key' is deprecated, use current Python 'key in mapping' idiom.Ben Finney1-6/+6
2008-06-21Merge from python-apt.debian-sid/.Ben Finney1-1/+1
2008-05-16Limit code lines to maximum 79 characters, to conform with PEP 8.Ben Finney1-14/+19
2008-05-16Statements on separate lines, to conform with PEP 8.Ben Finney1-1/+2
2008-05-16Fix spaces adjacent to commas and operators, to conform with PEP 8.Ben Finney1-1/+1
2008-05-16Fix code indentation to 4 spaces, to conform with PEP 8.Ben Finney1-367/+367
2008-05-16Fixes to blank lines, to conform with PEP 8.Ben Finney1-1/+12
2008-05-16Remove trailing whitespace.Ben Finney1-23/+23
2008-04-30aptsources/distro.py: fix typo (thanks to cjwatson)Michael Vogt1-1/+1
2007-08-03* aptsources/distro.py:Michael Vogt1-3/+5
- throw NoDistroTemplateException if not distribution template can be found * NMU * Fix version to not use CPU and OS since it's not available on APT anymore (closes: #435653, #435674)
2007-06-28* aptsources/distro.py:Michael Vogt1-88/+114
- generalized some code, bringing it into the Distribution class, and wrote some missing methods for the DebianDistribution one (thanks to Gustavo Noronha Silva)
2007-04-24* do not set the child base_uri to the parent one automatically, sinceSebastian Heinlein1-4/+6
we want to know if it a special server was forced * check if a server was forced for a child source before changing it
2007-04-07* the gettext domain of the iso codes changedSebastian Heinlein1-1/+1
2007-03-23* missed a debug breakpointSebastian Heinlein1-2/+0