Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-06-30 | apt/package.py: Add rawtype property to Dependency class | Michael Schaller | 1 | -4/+18 | |
2015-06-28 | BaseDependency.__repr__: Replace pre_depend with rawtype | Michael Schaller | 1 | -2/+2 | |
pre_depend only states if the relation is PreDepends, rawtype gives the relation type itself. | |||||
2015-06-21 | fix py3 issue with auto .gz decompression and add test | Michael Vogt | 1 | -3/+3 | |
2015-06-17 | apt.Cache: Issue a RuntimeWarning in connect() | Julian Andres Klode | 1 | -10/+19 | |
connect() is not deprecated but is very likely to cause a massive memory and file descriptor leak until Python chooses to run its GC. | |||||
2015-06-17 | Break the FilteredCache <-> Cache reference cycle | Julian Andres Klode | 1 | -27/+39 | |
This should do. | |||||
2015-06-17 | apt.Cache: Introduce a connect2() callback connector | Julian Andres Klode | 1 | -0/+25 | |
The new API passes the cache as the first argument to the callback and allows for other arguments to be passed as well. | |||||
2015-06-17 | apt.cache.FilteredCache: Fix multi-arch package lookups | Julian Andres Klode | 1 | -2/+6 | |
This makes it slightly slower, but everyone should be happier. | |||||
2015-06-10 | apt/debfile.py: Allow downgrading packages in check() with a parameter | Julian Andres Klode | 1 | -2/+3 | |
Well, we do not want to allow that in general. Closes: #613974 | |||||
2015-06-10 | cleanup: Fix some too long lines, and references in the documentation | Julian Andres Klode | 1 | -3/+3 | |
Gbp-Dch: ignore | |||||
2015-06-10 | Document that the cache now supports :all and friends | Julian Andres Klode | 1 | -0/+7 | |
Gbp-Dch: ignore | |||||
2015-06-10 | apt/debfile: Stop special-casing all when looking for a package in the cache | Julian Andres Klode | 1 | -4/+0 | |
The cache supports :all since the previous commit. | |||||
2015-06-10 | apt/cache.py: Support :all and other special architecture specifies | Julian Andres Klode | 1 | -33/+34 | |
Remove the _set and _fullnameset that previously stored the names of all packages in the cache. Checking if a package is now a matter of checking whether it is in the low-level cache and has versions (that is, is real). Still keep the _sorted_set around and make keys() manage it, and change everyone using _sorted_set for iteration to use keys(). | |||||
2015-06-10 | Improved docstring of the Version.get_dependencies method. | Michael Schaller | 1 | -1/+8 | |
2015-06-10 | Fixed docstring of BaseDependency.version property. | Michael Schaller | 1 | -2/+4 | |
2015-06-10 | apt.package: Only reference Launchpad for missing changelogs on Ubuntu | Julian Andres Klode | 1 | -5/+9 | |
The new message is not really helpful, but hey, who cares. Closes: #781270 | |||||
2015-06-10 | apt/debfile.py: Arch-qualify in compare_to_version_in_cache() | Julian Andres Klode | 1 | -0/+9 | |
This uses the native architecture if the packages architecture is all, and the other architecture in case. We might need to consider versioned provides here, I have not looked at that yet. Closes: #750189 | |||||
2015-06-10 | apt/cache.py: Work around a cyclic reference from Cache to its methods | Julian Andres Klode | 1 | -3/+6 | |
This makes the number of FDs stable in the test case and makes sure that our cache gets closed if it is deleted. Closes: #745487 | |||||
2015-06-10 | apt/debfile.py: Fix a too long line | Julian Andres Klode | 1 | -1/+2 | |
Gbp-Dch: ignore | |||||
2015-06-10 | Remove apt.progress.gtk2 | Julian Andres Klode | 2 | -440/+2 | |
2015-06-10 | apt.debfile: Fix splitting of multi-lines Binary fields in dsc files | Julian Andres Klode | 1 | -1/+1 | |
In a multi-line field, a comma might be followed by a newline instead of a space. Closes: #751770 | |||||
2015-06-10 | Fix indentation and docstring problems | von | 2 | -6/+7 | |
Closes: #784910 | |||||
2015-05-22 | Fix apt.Package.installed_files for multi-arch packages | Michael Vogt | 1 | -1/+1 | |
Thanks to Michael Schaller LP: #1313699 | |||||
2014-11-07 | apt/debfile.py: use apt_pkg.open_maybe_clear_signed_file() when opening a ↵ | Michael Vogt | 1 | -1/+2 | |
.dsc file | |||||
2014-09-03 | fix tests | Michael Vogt | 2 | -3/+5 | |
2014-09-03 | read all tags from a dsc file and improve tests | Michael Vogt | 1 | -6/+6 | |
2014-09-03 | add support for apt.debfile.DscSrcPackage.filelist | Michael Vogt | 1 | -3/+12 | |
2014-09-02 | Stop reading after the "Format" stanza in a .dsc file | Michael Vogt | 1 | -0/+3 | |
This makes the tagfile parser skip the last gpg signature part that also contains a "Version:" line. | |||||
2014-08-28 | tests/test_auth.py: update for gnupg 1.4.18 | Mauricio Faria de Oliveira | 1 | -0/+6 | |
The test 'test_add_key_from_server_mitm' needs updating for gnupg 1.4.18 which fail differently/earlier when 'fingerprints do not match' since commit 'Screen keyserver responses' (5230304349490f31aa64ee2b69a8a2bc06bf7816) With that change gnupg actually checks itself(!) if the key that the server send matches the key that the user asked for. Closes: #755342 | |||||
2014-06-30 | make pep8 happy (again) | Michael Vogt | 3 | -16/+16 | |
2014-04-02 | apt/package.py: Do not shadow _ | Julian Andres Klode | 1 | -3/+3 | |
This can lead to bugs later on and makes pyflakes 0.8 cry. | |||||
2014-03-10 | Revert "* apt/cache.py:" (rootdir change) | Julian Andres Klode | 1 | -4/+1 | |
This reverts commit 5e76e9fccee519c63602562dc4065deb3f97748b. Conflicts: apt/cache.py debian/changelog | |||||
2014-01-25 | apt/package.py: Pass an apt_pkg.Dependency to BaseDependency | Julian Andres Klode | 1 | -19/+41 | |
Instead of passing the properties to __init__(), let's just pass the apt_pkg.Dependency. Store that in a _dep attribute, and provide properties to provide the API. The other classes do it this way as well. Reported-by: Michael Schaller <michael@5challer.de> | |||||
2014-01-25 | apt/package.py: Improved readability and documentation of ↵ | Michael Schaller | 1 | -3/+18 | |
BaseDependency.__dstr(). | |||||
2014-01-06 | apt/package.py: Fix BaseDependency.__dstr.__ne__() | Julian Andres Klode | 1 | -1/+1 | |
It turns out I missed this. Just simplify it to return not self.__eq__(other). Also add a test case for it. Reported-by: Michael Schaller <michael@5challer.de> | |||||
2014-01-06 | Unify list of comparison type values everywhere | Julian Andres Klode | 1 | -1/+1 | |
They are now ordered and include the != and < operators in all cases. | |||||
2014-01-06 | apt, doc: Fix the list of comp_type values | Julian Andres Klode | 1 | -1/+1 | |
Reported-by: Michael Schaller <michael@5challer.de> | |||||
2014-01-06 | Use a single code base for Python 2 and 3 | Julian Andres Klode | 5 | -17/+33 | |
This is much better than running 2to3 during the build, as it gives us more control over the Python 3 code. | |||||
2014-01-06 | Use print_function everywhere | Julian Andres Klode | 11 | -62/+83 | |
This brings the code closer to Python 3. Automatically converted using 2to3 -f print. | |||||
2014-01-05 | make test_pep8.py pass | Michael Vogt | 6 | -89/+129 | |
2014-01-05 | make pyflakes clean | Michael Vogt | 4 | -2/+3 | |
2014-01-05 | apt/cache.py, apt/package.py: Fixed PEP8 and pyflakes issues | Michael Schaller | 2 | -49/+44 | |
This commit removed the unused local variable 'transient' in 'apt/cache.py' and the unused import 'warnings' in 'apt/package.py'. | |||||
2013-11-23 | * apt/cache.py: | Michael Vogt | 1 | -1/+4 | |
- when using apt.Cache(rootdir=/some/dir) only read the APT configuration from this rootdir instead of /etc (closes: #728274) | |||||
2013-10-24 | apt/cache.py: Call os.path.abspath() on a supplied rootdir (LP: #792295) | Julian Andres Klode | 1 | -0/+1 | |
When the rootdir option is set to a relative path, that path appears multiple times in the dir::state::status path, as we also prepend it there. | |||||
2013-10-21 | apt/debfile.py: Pass strip_multi_arch=False to parse_depends. | Julian Andres Klode | 1 | -6/+8 | |
Patch by Michael, tests derived from the ones provided by the reporter. I included the test debs without the source package, as for our use case, all needed "source code" is included in the package itself anyway. Reported-By: Francois Gouget <fgouget@free.fr> Closes: #717859 Closes: #717861 | |||||
2013-10-10 | apt, aptsources: Only call init_config() if not already initialized | Julian Andres Klode | 1 | -2/+4 | |
Based on an idea by the bug reporter. Reported-by: Dominique Lasserre <lasserre.d@googlemail.com> Closes: #686403 | |||||
2013-10-10 | apt/package.py: mark_upgrade misuses FromUser to set auto-installed | Daniel Hartwig | 1 | -2/+3 | |
Package.mark_upgrade uses FromUser for it's side effect of setting a package as auto-installed (or not). However, FromUser is also influential in pkgDepCache::IsModeChangeOk to determine whether an action should override a dpkg hold, etc.. Closes: #686726 | |||||
2013-10-08 | apt/package.py: Add a Package.has_config_files property (Closes: #712749) | Julian Andres Klode | 1 | -0/+5 | |
The name might be a bit misleading, but I cannot find a short name that completely describes this check. | |||||
2013-09-11 | Completely remove deprecated stuff | Julian Andres Klode | 8 | -725/+0 | |
2013-06-06 | add support for "key in apt.debfile.DebPackage" (closes: #710541) | Michael Vogt | 1 | -0/+3 | |
2013-05-08 | merged from experimental and uploaded to sid | Michael Vogt | 3 | -1/+27 | |