summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-25tests/test_apt_cache.py: Test accessing the record of all packages duringMartin Pitt2-0/+16
iteration. This both ensures that it's well-formatted and structured, and also that accessing it does not take an inordinate amount of time. This exposes a severe performance problem when using gzip compressed package indexes.
2010-06-02* data/templates/Ubuntu.info.in, Michael Vogt6-75/+203
data/templates/Ubuntu.mirrors: - updated for Ubuntu maverick * doc/source/conf.py: - do not fail on non-digits in the version number * utils/get_debian_mirrors.py: - ignore mirrors without a county
2010-06-01releasing version 0.7.95ubuntu1Michael Vogt1-2/+2
2010-06-01utils/get_debian_mirrors.py: ignore mirrors without a countyMichael Vogt1-0/+2
2010-06-01apt/__init__.py: remove unneeded importsMichael Vogt1-3/+0
2010-06-01pre-build.sh.moved: removedMichael Vogt1-8/+0
2010-06-01apt/__init__.py: enable deprecation warnings againMichael Vogt1-2/+0
2010-06-01* doc/source/conf.py:Michael Vogt2-1/+5
- do not fail for non digit version numbers like 0.7.95ubuntu1
2010-06-01revert commit 346 (this re-enable the deprecation warnings)Michael Vogt18-92/+68
2010-06-01* merge from debian bzr, remaining changes:Michael Vogt34-1133/+2754
- different mirror list * data/templates/gNewSense.info.in, data/templates/gNewSense.mirrors: - add gNewSense template and mirrors, thanks to Karl Goetz * apt/cache.py: - Make Cache.get_changes() much (~35x) faster (Closes: #578074). - Make Cache.req_reinstall_pkgs much faster as well. - Make Cache.get_providing_packages() about 1000 times faster. - Use has_versions and has_provides from apt_pkg.Package where possible. * apt/package.py: - Decode using utf-8 in installed_files (LP: #407953). - Fix fetch_source() to work when source name = binary name (LP: #552400). - Merge a patch from Sebastian Heinlein to make get_changelog() only check sources where source version >= binary version (Closes: #581831). - Add Version.source_version and enhance Sebastian's patch to make use of it, in order to find the best changelog for the package. * python: - Return bool instead of int to Python where possible, looks better. - Document every class, function, property. * python/cache.cc: - Check that 2nd argument to Cache.update() really is a SourceList object. - Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource. - Add Package.has_versions to see which packages have at least one version, and Package.has_provides for provides. - Add rich compare methods to the Version object. * python/generic.cc: - Fix a memory leak when using old attribute names. - Map ArchiveURI property to archive_uri * python/progress.cc: - Do not pass arguments to InstallProgress.wait_child(). * doc: - Update the long documentation. * debian/control: - Change priority to standard, keep -doc and -dev on optional. * utils/migrate-0.8.py: - Open files in universal newline support and pass filename to ast.parse. - Add has_key to the list of deprecated functions. - Don't abort if parsing failed. - do not require files to end in .py if they are passed on the command line or if they contain python somewhere in the shebang line. * apt/cache.py: - make cache open silent by default (use apt.progress.base.OpProgress) * tests/data/aptsources_ports/sources.list: - fix ports test-data * tests/test_apt_cache.py: - add simple test for basic cache/dependency iteration
2010-06-01* data/templates/gNewSense.info.in,Michael Vogt3-0/+553
data/templates/gNewSense.mirrors: - add gNewSense template and mirrors, thanks to Karl Goetz
2010-05-19Release 0.7.95Julian Andres Klode1-2/+2
2010-05-19Update debian/changelog for the documentation updates.Julian Andres Klode1-0/+2
* doc: - Update the long documentation.
2010-05-19Add Version.source_version and enhance Sebastian's patch to make useJulian Andres Klode2-8/+24
of it, in order to find the best changelog for the package.
2010-05-19Merge a patch from Sebastian Heinlein to make get_changelog() onlyJulian Andres Klode2-17/+10
check sources where source version >= binary version (Closes: #581831).
2010-05-19Big documentation update.Julian Andres Klode7-644/+993
2010-05-09releasing version 0.7.94.2ubuntu7Colin Watson1-2/+2
2010-05-09* data/templates/Ubuntu.info.in:Colin Watson2-0/+68
- add maverick
2010-05-09Initial commit of gNS templates for python-aptKarl Goetz2-0/+544
2010-04-30* python/progress.cc:Julian Andres Klode2-3/+3
- Do not pass arguments to InstallProgress.wait_child().
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode18-174/+223
2010-04-21apt/cache.py: Use has_versions and has_provides from apt_pkg.Package where ↵Julian Andres Klode2-3/+4
possible.
2010-04-21python/cache.cc: Add Package.has_provides to see which packages are provided ↵Julian Andres Klode2-1/+10
at least once.
2010-04-21apt/cache.py: Make Cache.get_providing_packages() about 1000 times faster.Julian Andres Klode2-15/+23
2010-04-21apt/cache.py: Make Cache.req_reinstall_pkgs much faster as well.Julian Andres Klode2-4/+7
2010-04-21Add rich compare methods to the Version object.Julian Andres Klode2-1/+21
2010-04-21Add Package.has_versions to see which packages have at least one version.Julian Andres Klode2-0/+10
2010-04-21apt/cache.py: Make Cache.get_changes() much (~35x) faster (Closes: #578074).Julian Andres Klode2-4/+10
This change consists of the following ideas: - Switch to the low-level API - Use 'not marked_keep()' to check if a package has been modified.
2010-04-14releasing version 0.7.94.2ubuntu6Michael Vogt1-1/+1
2010-04-14merged -r 396..397 from the debian-sid branchMichael Vogt2-1/+11
2010-04-01python: Document every class, function, property.Julian Andres Klode17-325/+893
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-04-01python: Return bool instead of int to Python where possible, looks better.Julian Andres Klode16-60/+61
2010-04-01Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource.Julian Andres Klode2-1/+2
2010-03-31releasing version 0.7.94.2ubuntu5Michael Vogt1-1/+1
2010-03-31merged from http://bzr.debian.org/apt/python-apt/debian-sid/Michael Vogt8-21/+48
2010-03-31* python/cache.cc:Julian Andres Klode2-1/+4
- Check that 2nd argument to Cache.update() really is a SourceList object.
2010-03-31apt/package.py: Fix fetch_source() to work when source name = binary name ↵Julian Andres Klode2-5/+6
(LP: #552400).
2010-03-30apt/package.py: Decode using utf-8 in installed_files (LP: #407953).Julian Andres Klode2-2/+4
2010-03-29do not require files to end in .py if they are passed on the commandJulian Andres Klode2-1/+6
line or if they contain python somewhere in the shebang line.
2010-03-29Don't abort if parsing failed.Julian Andres Klode2-1/+7
2010-03-29Add has_key to the list of deprecated functions.Julian Andres Klode2-1/+2
2010-03-29utils/migrate-0.8.py: Open files in universal newline support and pass ↵Julian Andres Klode2-1/+3
filename to ast.parse.
2010-03-29If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable theMichael Vogt19-66/+98
deprecation warnings in apt_pkg directly; and don't just disable any deprecation warning in apt/__init__.py (LP: #548623)
2010-03-29If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable theJulian Andres Klode19-66/+98
deprecation warnings in apt_pkg directly; and don't just disable any deprecation warning in apt/__init__.py (LP: #548623)
2010-03-26Merge with mvo, with the following changes:Julian Andres Klode5-9/+54
* python/generic.cc is changed instead of python/indexfile.cc to add the ArchiveURI property * tests/test_apt_cache.py is changed to assert the properties of the Dependency object instead of assigning them to a variable. The additions to the changelog are: [ Julian Andres Klode ] - Map ArchiveURI property to archive_uri [ Michael Vogt ] * apt/cache.py: - make cache open silent by default (use apt.progress.base.OpProgress) * tests/data/aptsources_ports/sources.list: - fix ports test-data * tests/test_apt_cache.py: - add simple test for basic cache/dependency iteration
2010-03-25commit prefix upload changesMichael Vogt2-3/+11
2010-03-25* python/indexfile.cc:Michael Vogt2-0/+11
- add missing 0.7 compat indexfile.ArchiveURI method (LP: #545848)
2010-03-25* apt/__init__.py:Michael Vogt3-56/+64
- only show deprecation warnings if PYTHON_APT_DEPRECATION_WARNINGS is set in the environment * python/indexfile.cc: - add missing 0.7 compat indexfile.ArchiveURI method
2010-03-23releasing version 0.7.94.2ubuntu1Michael Vogt1-3/+5
2010-03-23apt/__init__.py: use warnings.simplefilterMichael Vogt1-2/+1