summaryrefslogtreecommitdiff
path: root/python/acquire-item.cc
AgeCommit message (Collapse)AuthorFilesLines
2010-06-01revert commit 346 (this re-enable the deprecation warnings)Michael Vogt1-4/+3
2010-06-01* merge from debian bzr, remaining changes:Michael Vogt1-15/+56
- 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-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-14/+25
2010-04-01python: Document every class, function, property.Julian Andres Klode1-15/+45
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-03-29If PYTHON_APT_DEPRECATION_WARNINGS is unset, also disable theJulian Andres Klode1-3/+4
deprecation warnings in apt_pkg directly; and don't just disable any deprecation warning in apt/__init__.py (LP: #548623)
2010-03-01* python/acquire-item.cc:Julian Andres Klode1-0/+7
- Add AcquireItem.partialsize member.
2010-02-27* python:Julian Andres Klode1-12/+1
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-9/+9
2010-01-27Drop the segfault prevention measures from the Acquire code, as they failJulian Andres Klode1-47/+1
to work. A replacement will be added once destruction callbacks are added in APT.
2010-01-24python/acquire-item.cc: Add GC support to AcquireItem.Julian Andres Klode1-3/+4
AcquireItem is owned and owned items need to support the GC in case someone subclasses Acquire and creates a circular reference.
2010-01-23python/acquire-item.cc: Support items without an owner set.Julian Andres Klode1-18/+20
2009-07-22python: 2nd part of the acquire fixes (one PyObject per C++ object).Julian Andres Klode1-5/+9
2009-07-22python: First step of fixing acquire stuff.Julian Andres Klode1-0/+357
Basically, we only want to have on PyAcquireItem per pkgAcquire::Item, and one PyAcquireItemDesc per pkgAcquire::ItemDesc. Therefore, we store them so we can return them at a later time.