summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
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
2010-01-31python/arfile.cc: Handle the case where ararchive_new returns NULL in ↵Julian Andres Klode1-0/+2
debfile_new.
2010-01-27Remove inline functions from the C++ API, export them instead (part 1)Julian Andres Klode3-103/+244
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode23-278/+218
2010-01-27Drop the segfault prevention measures from the Acquire code, as they failJulian Andres Klode5-160/+61
to work. A replacement will be added once destruction callbacks are added in APT.
2010-01-24python/progress.h: PyFetchProgress keeps a reference to pyAcquire.Julian Andres Klode1-1/+4
2010-01-24Clone all pkgDirStream::Item's so apt_pkg.TarMember object can be usedJulian Andres Klode1-30/+43
outside of the callback function passed to go().
2010-01-24* python/tarfile.cc:Julian Andres Klode1-4/+10
- When extracting, only allocate a new buffer if the old one was too small. - Do not segfault if TarFile.go() is called without a member name.
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: Export a PyAcquire_FromCpp which sets up a correct PyAcquireObject.Julian Andres Klode4-1/+18
2010-01-23python/acquire-item.cc: Support items without an owner set.Julian Andres Klode1-18/+20
2010-01-23* python/progress.cc:Julian Andres Klode1-2/+9
- Fix some threading issues (add some missing PyCbObj_BEGIN_ALLOW_THREADS)
2010-01-23Fix reference counting for old progress classes (Closes: #566370).Julian Andres Klode1-7/+15
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode7-41/+41
2010-01-20python/progress.cc: Always set 'percent' in OpProgress objects.Julian Andres Klode1-2/+1
2010-01-15python/apt_pkgmodule.cc: Rename remaining Acquire.result_* to Acquire.RESULT_*.Julian Andres Klode1-2/+2
2010-01-15python/indexrecords.cc,python/policy.cc: Rename functions.Julian Andres Klode2-41/+41
2010-01-15python/lock.cc,python/progress.cc: Include Python.h first to avoid warning.Julian Andres Klode2-2/+2
2010-01-15Make all class-level constants have uppercase names.Julian Andres Klode1-9/+9
2010-01-15Merge 0.7.13.5 pre.Julian Andres Klode3-16/+50