summaryrefslogtreecommitdiff
path: root/aptsources
AgeCommit message (Collapse)AuthorFilesLines
2014-01-06Use print_function everywhereJulian Andres Klode2-1/+3
This brings the code closer to Python 3. Automatically converted using 2to3 -f print.
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 Vogt3-47/+47
2013-10-21aptsources: Correctly parse multiple options (LP: #1103200)Julian Andres Klode1-5/+18
It's still not optimal and we do not support the arch+ and arch- options, but it's a beginning.
2013-10-10apt, aptsources: Only call init_config() if not already initializedJulian Andres Klode1-2/+5
Based on an idea by the bug reporter. Reported-by: Dominique Lasserre <lasserre.d@googlemail.com> Closes: #686403
2013-10-08aptsources/sourceslist.py: Fix uniq docstring and hide it (Closes: #723815)Julian Andres Klode1-1/+9
We accidentally exported this and people wrongly assumed that it was intended for SourcesList objects.
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-4/+0
2013-05-08merged from experimental and uploaded to sidMichael Vogt3-4/+9
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 Watson3-3/+4
tests/test_apt_cache.py, tests/test_debfile_multiarch.py: - Use logging.warning rather than the deprecated logging.warn.
2012-08-31Enable disabled repository instead of adding a new entry if a duplicate ↵sampo5551-1/+1
disabled entry already exists (LP: #1042916).
2012-06-12cherry pick r472 from lp:~ubuntu-core-dev/python-apt/ubuntu (thanks Colin!)Michael Vogt3-11/+17
2012-01-10pyflakes fixesMichael Vogt3-6/+2
2011-12-19pyflakes cleanup, use apt_pkg.gettext in aptsources tooMichael Vogt3-10/+3
2011-10-19* merged from ubuntu:Michael Vogt3-27/+29
- use logging instead of print - update distro template Ubuntu.info.in - add xz compression support
2011-10-10* aptsources/sourceslist.py:Michael Vogt1-1/+1
- import distinfo from the same dir (LP: #871007)
2011-09-28add concept of "ParentComponent" for e.g. ubuntu/multiverseMichael Vogt2-3/+22
that needs universe enabled as well (plus add test) LP: #829284
2011-09-28add concept of "ParentComponent" for e.g. ubuntu/multiverseMichael Vogt2-3/+22
that needs universe enabled as well (plus add test)
2011-08-11* aptsources/distinfo.py:Michael Vogt1-1/+1
- make mirror a valid protocol name
2011-08-11* aptsources/distinfo.py:Michael Vogt1-1/+1
- make mirror a valid protocol name
2011-08-09* aptsources/sourceslist.py:Michael Vogt1-1/+1
- fix py3.2 compat issue that causes FTBFS on amd64 tests
2011-05-26merge from debian, omit disable of the 0.7 APIMichael Vogt2-126/+128
2011-04-20releasing version 0.7.100.3ubuntu5Michael Vogt1-1/+4
2011-04-12Update enable_component to also apply to -src entries (LP: #758732)Julian Andres Klode1-0/+3
2011-04-12releasing version 0.7.100.3ubuntu4Stéphane Graber1-0/+3
2011-04-11aptsources/sourceslist.py: s/aptsource.py/sourceslist.py/ (LP: #309603)Julian Andres Klode1-1/+1
2011-04-06* cherry pick multiarch support for aptsources from debianMichael Vogt1-6/+35
* aptsources: Parse multi-arch sources.list files correctly * aptsources: Allow insertion of new multi-arch entries
2011-04-06cherry pick -r 505..506 http://bzr.debian.org/apt/python-apt/debian-experimentalMichael Vogt1-4/+13
2011-04-06cherry pick -r 504..505 http://bzr.debian.org/apt/python-apt/debian-experimentalMichael Vogt1-2/+22
2011-04-06all: Fix all instances of ResourceWarning about unclosed filesJulian Andres Klode2-97/+103
2011-04-06aptsources: Various cleanup workJulian Andres Klode1-27/+26
2011-04-06aptsources: Allow insertion of new multi-arch entriesJulian Andres Klode1-4/+13
2011-04-06aptsources: Parse multi-arch sources.list files correctlyJulian Andres Klode1-2/+22
2010-10-18fix compat issues with python3Michael Vogt3-23/+25
2010-09-13* data/templates/Ubuntu.info.in:Michael Vogt2-1/+8
- 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* data/templates/*.in: Switch MirrorsFile to relative filenames.Julian Andres Klode1-0/+3
- setup.py: Copy the mirror lists to the build directory - aptsources/distinfo.py: Support relative filenames for MirrorsFile.
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 Klode3-8/+8
2009-08-02Only recommend lsb-release instead of depending on it. Default toJulian Andres Klode2-10/+28
Debian unstable if lsb_release is not available.
2009-07-20Merge from debian-sidJulian Andres Klode1-2/+2
2009-07-17aptsources/distinfo.py: Fix split_url() on Python 3.Julian Andres Klode1-2/+4
2009-07-13* aptsources/distro.py:Michael Vogt1-2/+2
- fix indent error that causes incorrect sources.list additons (LP: #372224)
2009-06-04apt, aptsources, doc: Update to use the new names.Julian Andres Klode2-9/+9
2009-04-16* apt/*.py: Initial rename work for Bug#481061Julian Andres Klode1-1/+5
A new module, apt.deprecation, is introduced containing functions and classes which assist in the deprecation. The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7). The names are changed, and compatibility functions are enabled if bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with backward compatibility fixes. This commit changes the apt and aptsources packages, the apt_pkg and apt_inst extensions will be the next renames.
2009-04-01* Copyright updates: debian/copyright, etc.Julian Andres Klode3-14/+12
- debian/copyright: Switch to machine-interpretable copyright - apt/*.py: Fix the copyright years and comments.
2009-03-23* aptsources/sourceslist.py:Michael Vogt1-1/+1
- fix bug in invalid lines detection (LP: #324614)