summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-07-05python-apt (1.0.0~beta3+dyson1)HEADmasterIgor Pashev1-0/+6
2015-07-05Merge git://anonscm.debian.org/apt/python-aptIgor Pashev216-4662/+4677
Conflicts: debian/changelog python/apt_pkgmodule.cc
2015-06-30apt/package.py: Add rawtype property to Dependency classMichael Schaller1-4/+18
2015-06-28BaseDependency.__repr__: Replace pre_depend with rawtypeMichael Schaller1-2/+2
pre_depend only states if the relation is PreDepends, rawtype gives the relation type itself.
2015-06-23doc/source/conf.py: Reproducibility: Set html_last_updated_fmt = NoneJulian Andres Klode1-1/+1
This hopefully makes the build reproducible now.
2015-06-21fix py3 issue with auto .gz decompression and add testMichael Vogt3-3/+8
2015-06-17Release 1.0.0~beta3 to unstableJulian Andres Klode1-0/+13
Let's use the default urgency this time, no need to delay the transition to testing, they should test too.
2015-06-17doc: whatsnew: Document what's new in beta3Julian Andres Klode1-1/+13
2015-06-17apt.Cache: Issue a RuntimeWarning in connect()Julian Andres Klode1-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-17Break the FilteredCache <-> Cache reference cycleJulian Andres Klode1-27/+39
This should do.
2015-06-17apt.Cache: Introduce a connect2() callback connectorJulian Andres Klode1-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-17apt.cache.FilteredCache: Fix multi-arch package lookupsJulian Andres Klode1-2/+6
This makes it slightly slower, but everyone should be happier.
2015-06-17doc/source/library/apt_pkg.rst: Fix an example from old API to new APIJulian Andres Klode1-3/+3
Someone reported this to mvo.
2015-06-17setup.py: If no version is in the environment, return NoneJulian Andres Klode1-0/+3
2015-06-16tests/test_paths.py: Add an 'always' warning filter, so it is reliableJulian Andres Klode1-2/+6
Previously, the warning was not always issued, causing the test to fail in some cases. Also change the assertions to use the assert* methods of unittest, and check that md5 and hash are mentioned in the deprecation message. Thanks: Adam Conrad Gbp-Dch: ignore
2015-06-16tests/test_paths.py: Fix indentationJulian Andres Klode1-4/+4
Geany misdetected it as 8 spaces, but it should be 4. Gbp-Dch: ignore
2015-06-16tests/test_paths.py: Catch and assert the DeprecationWarningJulian Andres Klode1-4/+10
This fixes Ubuntu autopkg test failure wily-adt-python-apt #12. https://jenkins.qa.ubuntu.com/job/wily-adt-python-apt/12/
2015-06-13Release 1.0.0~beta2 to unstableJulian Andres Klode1-0/+7
This is a quick fix for the symlink issue to prevent more people from getting infected by it.
2015-06-13Handle the symlink to directory transition correctlyJulian Andres Klode2-0/+2
We previously did not delete the symlink before installing the directory, causing the symlink to remain. Closes: #788571
2015-06-11debian/control: Build-Depend on apt (>= 1.0.9.4) for Files2()Julian Andres Klode1-1/+1
We want to use that soon, so start build-depending now, otherwise we might forget it.
2015-06-11Release 1.0.0~beta1 to unstableJulian Andres Klode1-0/+57
2015-06-11setup.py: Do not raise a value error if there's a tilde in the versionJulian Andres Klode1-3/+0
This breaks PPAs. No workaround yet, so PPA users will have to live with pkg_resources complaints. Gbp-Dch: ignore
2015-06-11setup.py: Translate version number from Debian to PEP0440Julian Andres Klode1-1/+19
Such a idiocy. LP: #1445949
2015-06-11tests/test_large_file.py: make pep8 happyJulian Andres Klode1-1/+2
The spacing around the ** operator looks ugly, and that's fixed in pep8 1.6.0, but we only have 1.5.7. Gbp-Dch: ignore
2015-06-11python/tarfile.cc: LFS: Handle too large fileJulian Andres Klode3-7/+53
Handle both file sizes larger than SIZE_MAX and allocation failures when reading the data of a tarmember. If using the go() function with a callback, pass None as the data parameter for files that are too large. For extractdata, raise a MemoryError if the file too extract is too large. Also check for an existing error first in extractdata, before raising a new one. Test the whole thing on 32-bit platforms with a sample deb that contains a zeroed file that is 5GB large (compressed using xz at level 1 to a few kb).
2015-06-10Acquire: Document that items may have transient errors on run() successJulian Andres Klode2-6/+11
If run() succeeded, items may still have transient errors, like a Not Found error. Closes: #680997
2015-06-10apt/debfile.py: Allow downgrading packages in check() with a parameterJulian Andres Klode1-2/+3
Well, we do not want to allow that in general. Closes: #613974
2015-06-10python/arfile.cc: LFS: Use long long instead of long for file sizesJulian Andres Klode1-3/+3
This should make large files in ar archives work. See Bug: #742885
2015-06-10python/arfile.cc: Do not allow files larger than SIZE_MAX to be mappedJulian Andres Klode1-1/+13
Also catch failed allocations, in case size is still too large. This prepares for large file support, see Bug#742885
2015-06-10cleanup: Fix some too long lines, and references in the documentationJulian Andres Klode2-4/+4
Gbp-Dch: ignore
2015-06-10Document that the cache now supports :all and friendsJulian Andres Klode2-0/+9
Gbp-Dch: ignore
2015-06-10apt/debfile: Stop special-casing all when looking for a package in the cacheJulian Andres Klode1-4/+0
The cache supports :all since the previous commit.
2015-06-10apt/cache.py: Support :all and other special architecture specifiesJulian Andres Klode1-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-10Improved docstring of the Version.get_dependencies method.Michael Schaller1-1/+8
2015-06-10Fixed docstring of BaseDependency.version property.Michael Schaller1-2/+4
2015-06-10apt.package: Only reference Launchpad for missing changelogs on UbuntuJulian Andres Klode1-5/+9
The new message is not really helpful, but hey, who cares. Closes: #781270
2015-06-10apt/debfile.py: Arch-qualify in compare_to_version_in_cache()Julian Andres Klode1-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-10apt/cache.py: Work around a cyclic reference from Cache to its methodsJulian Andres Klode1-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-10apt/debfile.py: Fix a too long lineJulian Andres Klode1-1/+2
Gbp-Dch: ignore
2015-06-10Update POTFILES.in and the potJulian Andres Klode2-104/+100
2015-06-10apt_pkg.Package: Drop the unset 'auto' attributeJulian Andres Klode3-11/+2
If somebody uses that, it could assume that no package is auto removable, because the attribute is always 0. So let's just remove that instead of having crazy code working the way it's not intended. Closes: #565364
2015-06-10Remove apt.progress.gtk2Julian Andres Klode9-632/+15
2015-06-10apt.debfile: Fix splitting of multi-lines Binary fields in dsc filesJulian Andres Klode3-4/+5
In a multi-line field, a comma might be followed by a newline instead of a space. Closes: #751770
2015-06-10python-apt-doc: Remove the old examples and html directory before upgradeJulian Andres Klode1-0/+16
This somehow has to be done here, otherwise dpkg complains. Gbp-Dch: ignore
2015-06-10Use ${python:Depends} and friends for the debug packagesJulian Andres Klode1-2/+4
dpkg-gencontrol was unhappy. Now he's only unhappy about ${python:Versions} and ${python3:Versions}, but I do not think they should be used anymore.
2015-06-10Do not link documentation from Architecture: all to Architecture: anyJulian Andres Klode1-2/+2
This was breaking binNMUs.
2015-06-10debian/control: Build-Depend on dh-pythonJulian Andres Klode1-0/+1
dh_python2 complained about it
2015-06-10doc: templates: indexcontent: Fix link from modindex to py-modindexJulian Andres Klode1-1/+1
This seems to have changed in recent sphinx versions. Gbp-Dch: ignore
2015-06-10doc: templates: layout: Fixup last commitJulian Andres Klode1-1/+1
Gbp-Dch: ignore
2015-06-10doc: templates: layout: Remove invalid icon linksJulian Andres Klode1-7/+1
Those came from the (public-domain) Python documentation source code. Git-dch: ignore