summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-05Re-enable Python 3 support for latest python-default changes (hack).Julian Andres Klode3-0/+7
2010-07-02* merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port theMichael Vogt20-136/+513
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly * apt/debfile.py: - check if the debfiles provides are in conflict with the systems packages * tests/test_debs/*.deb, tests/test_debfile.py: - add automatic test based on the test debs from gdebi
2010-07-02* tests/test_debs/*.deb, tests/test_debfile.py:Michael Vogt13-4/+64
- add automatic test based on the test debs from gdebi
2010-07-02* apt/debfile.py:Michael Vogt2-1/+15
- check if the debfiles provides are in conflict with the systems packages
2010-07-02apt/debfile.py: fix bug in compare_to_version_in_cache with use_installed=TrueMichael Vogt1-1/+1
2010-07-02apt/debfile.py: DebFile needs a open fileMichael Vogt1-1/+1
2010-07-02merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port theMichael Vogt6-131/+369
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly
2010-07-02add test_progress.py testMichael Vogt3-0/+65
2010-06-29* apt/cache.py:Michael Vogt3-0/+45
- add new "dpkg_journal_dirty" property that can be used to detect a interrupted dpkg (the famous "E: dpkg was interrupted, you must manually run 'dpkg --configure -a'")
2010-06-29* apt/cache.py:Michael Vogt3-0/+45
- add new "dpkg_journal_dirty" property that can be used to detect a interrupted dpkg (the famous "E: dpkg was interrupted, you must manually run 'dpkg --configure -a'")
2010-06-29merged from debian-sidMichael Vogt43-1294/+3057
2010-06-28Revert own change, as we can conflict/provide the same packageKiwinote1-13/+0
2010-06-28self.conflicts returns name, ver, oper, rather than name, oper, verKiwinote1-4/+4
2010-06-28And subtract a yearKiwinote1-0/+1
2010-06-28December is month 12, not month 0Kiwinote1-0/+2
2010-06-28Don't query cache[].candidate.version when no cache[].candidate is availableKiwinote1-1/+3
2010-06-25Don't depend on python-debianKiwinote1-2/+13
2010-06-25Merge cache.get_providers_for() into cache.get_providing_packages() and ↵Kiwinote2-48/+46
update debfile.py to use this
2010-06-25Remove unneeded cache.downloadable()Kiwinote1-10/+0
2010-06-25Merge gdebi changesKiwinote2-109/+310
2010-06-25* tests/test_apt_cache.py: Test accessing the record of all packages duringMichael Vogt3-1/+32
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. * apt/cache.py: When iterating over the cache, do so sorted by package name. With this we read the the package lists linearly if we need to access the package records, instead of having to do thousands of random seeks; the latter is disastrous if we use compressed package indexes, and slower than necessary for uncompressed indexes.
2010-06-25apt/cache.py: When iterating over the cache, do so sorted by package name.Martin Pitt2-1/+16
With this we read the the package lists linearly if we need to access the package records, instead of having to do thousands of random seeks; the latter is disastrous if we use compressed package indexes, and slower than necessary for uncompressed indexes.
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.