summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
2011-04-05Add apt_pkg.Group class, wrapping pkgCache::GrpIteratorJulian Andres Klode5-0/+204
2011-04-05Add an 'is_multi_arch' attribute to apt_pkg.Cache Julian Andres Klode1-0/+7
2011-04-04* python/cache.cc:Julian Andres Klode1-1/+30
- Add Package.get_fullname() and Package.architecture
2011-03-29PyFetchProgress::Pulse(): When ignoring a false return value fromMichael Vogt1-1/+3
PyArg_Parse() after running the simple callback pulse(), there can be an exception on the stack, which must be cleared. (LP: #711225)
2011-03-21* python/arfile.cc, apt/debfile.py:Michael Vogt1-5/+9
- add support for .xz archives * tests/test_debfile.py: - add test for xz compression
2011-03-21 - add optional parameter to allow parse_depends() to keep theMichael Vogt1-3/+4
multiarch parameter * tests/test_deps.py: - add test forapt_pkg.parse_depends(strip_multiarch=True)
2011-03-21* python/apt_pkgmodule.cc:Michael Vogt1-2/+3
- strip multiarch by default in RealParseDepends
2011-02-18* python/depcache.cc:Michael Vogt1-0/+30
- provide bindings for new libapt SetCandidateRelease() * debian/control: - require new libapt-pkg-dev SetCandidateRelease()
2010-12-22python/depcache.cc: remove Py_DECREF, that is one too much (thanks to juliank)Michael Vogt1-1/+0
2010-12-22merged from lp:~mvo/python-apt/mvoMichael Vogt1-1/+3
2010-12-22* python/depcache.cc:Michael Vogt1-1/+3
- when using the actiongroup as a contextmanager incref/decref on enter and leave. this should fix the instablity issues that aptdaemon runs into (LP: #691134)
2010-12-12Merge from mvoJulian Andres Klode2-2/+5
* python/generic.h: - set Object to NULL in CppDeallocPtr * python/depcache.cc: - don't run "actiongroup.release()" if the object was already deallocated * tests/test_apt_cache.py: - fix tests to work if apt compressed indexes are enabled
2010-12-07python/generic.h: Fix a memory leak (leaking on every unicode string).Julian Andres Klode1-1/+3
2010-12-07* python/generic.h:Michael Vogt2-2/+5
- set Object to NULL in CppDeallocPtr * python/depcache.cc: - don't run "actiongroup.release()" if the object was already deallocated
2010-09-28python/acquire-item.cc: strprintf() to have a working %lluMichael Vogt1-8/+13
2010-09-24* python/acquire-item.cc:Michael Vogt1-2/+2
- fix two more int -> long long change to follow the changes from libapt
2010-09-24merge fix from Steven Chamberlain <steven@pyro.eu.org> forMichael Vogt1-1/+1
crash in unattended-upgrades, many many thanks (closes: #596408)
2010-09-20fix return type of DebSize() and UsrSize(), thanks toMichael Vogt1-2/+2
Sebastian Heinlein, LP: #642936
2010-09-13python/configuration.cc: fix typo in doc stringMichael Vogt1-1/+1
2010-09-08* apt/debfile.py:Michael Vogt1-1/+5
- remove bogus comment * python/tag.cc: - allow "bytes" type in TagSecNew (for python3)
2010-09-07cherry pick -r453 from lp:~mvo/python-apt/debian-sidMichael Vogt1-2/+3
2010-08-27python/cache.cc: improve documentationMichael Vogt1-2/+3
2010-08-27python/cache.cc: doc update for provides_listMichael Vogt1-3/+2
2010-08-10* python/acquire.cc:Michael Vogt1-3/+3
- return long long when calling TotalNeeded(), FetchNeeded() and PartialPresent() from pkgAcquire(). This follows the change in libapt.
2010-07-29merged dump() method from lp:~mvo/python-apt/mvoMichael Vogt1-1/+16
2010-07-29* python/configuration.cc:Michael Vogt1-1/+16
- add binding for the "dump()" method to configruation objects
2010-07-23* python/apt_pkgmodule.cc:Julian Andres Klode1-0/+2
- Bind pkgAcquire::Item::StatTransientNetworkError (Closes: #589010)
2010-07-23* python/tag.cc:Julian Andres Klode1-0/+5
- Support gzip compression for control files (Closes: #383617), requires APT (>> 0.7.26~exp10) to work.
2010-07-06* python/progress.cc:Michael Vogt1-1/+4
- deal with missing return value from the acquire progress in pulse()
2010-04-30* python/progress.cc:Julian Andres Klode1-3/+1
- 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-21python/cache.cc: Add Package.has_provides to see which packages are provided ↵Julian Andres Klode1-0/+8
at least once.
2010-04-21Add rich compare methods to the Version object.Julian Andres Klode1-1/+20
2010-04-21Add Package.has_versions to see which packages have at least one version.Julian Andres Klode1-0/+9
2010-04-01python: Document every class, function, property.Julian Andres Klode16-325/+892
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 Klode15-60/+59
2010-04-01Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource.Julian Andres Klode1-1/+1
2010-03-31* python/cache.cc:Julian Andres Klode1-1/+2
- Check that 2nd argument to Cache.update() really is a SourceList object.
2010-03-26Merge with mvo, with the following changes:Julian Andres Klode1-0/+1
* 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-25* apt/__init__.py:Michael Vogt1-0/+3
- 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-23merge from debian-sidMichael Vogt1-0/+6
2010-03-15Correctly fix the last one, PyErr_Restore takes a reference.Julian Andres Klode1-0/+3
2010-03-15* python/generic.cc:Julian Andres Klode1-0/+3
- Fix a memory leak when using old attribute names.
2010-03-12merged from debian-sidMichael Vogt16-257/+179
2010-03-10python/apt_pkgmodule.cc: Fix apt_pkg.CompType to use CompTypeOld.Julian Andres Klode1-7/+13
2010-03-10* python/apt_pkgmodule.cc:Julian Andres Klode1-0/+30
- Treat '>>' and '>', '<<' and '<' as identical in check_dep (LP: #535667). * tests: - test_deps: Add tests for apt_pkg.CheckDep, apt_pkg.check_dep, apt_pkg.parse_depends and apt_pkg.parse_src_depends.
2010-03-09python/generic.cc: use std::string instead of stringMichael Vogt2-3/+2
2010-03-05* python/tag.cc:Julian Andres Klode1-0/+16
- Hack the TagFile iterator to not use shared storage (Closes: #572596): Scan once, duplicate the section data, and scan again.
2010-03-03python/generic.cc: Map UntranslatedDepType to dep_type_untranslated.Julian Andres Klode1-0/+1
2010-03-01* python/acquire-item.cc:Julian Andres Klode1-0/+7
- Add AcquireItem.partialsize member.