summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
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.
2010-02-27* python:Julian Andres Klode15-248/+93
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
2010-02-27* python/cache.cc:Julian Andres Klode1-5/+22
- Implement Cache.__len__() and Cache.__contains__() (Closes: #571443).
2010-02-17python/progress.cc: more compat fixesMichael Vogt1-8/+8
2010-02-17* python/progress.cc:Michael Vogt1-23/+22
- try to call compatibility functions first, then new functions
2010-02-13python/tagfile.cc: Implement the iterator protocol in TagFile.Julian Andres Klode1-5/+31
2010-02-02python: Update PyAcquire_FromCpp to the new API rules (add Owner parameter).Julian Andres Klode4-6/+7
2010-02-02Fix typo seperated => separated in multiple files (reported by lintian).Julian Andres Klode1-1/+1
2010-02-02Remove inline functions from the C++ API, export them instead (part 2).Julian Andres Klode8-68/+216
2010-02-02python/tarfile.cc: If only one member is requested, extract just that one.Julian Andres Klode1-0/+2
2010-01-31python/generic.h: Fix CppPyObject_NEW with parameter again.Julian Andres Klode1-2/+2