summaryrefslogtreecommitdiff
path: root/python/pkgmanager.cc
AgeCommit message (Collapse)AuthorFilesLines
2009-06-25python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT().Julian Andres Klode1-4/+1
This is related to PEP 3123 and fixes some compiler warnings.
2009-06-21python: Add DeprecationWarning to functions which were replaced by classes.Julian Andres Klode1-0/+3
2009-06-12Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149)Julian Andres Klode1-1/+1
We previously called the destructor of the pointer. This resulted in no object using pointers being deallocated. This patch introduces CppDeallocPtr() and CppOwnedDeallocPtr() which do the same as the other CppDealloc() and CppOwnedDealloc(), but use 'delete' on the pointer instead of the deconstructor. Furthermore, this patch also changes AcquireFile to be a CppOwnedPyObject, owned by the Acquire object. Without this change, deleting the Acquire object would cause a crash when AcquireFile is deallocated.
2009-06-09Allow types providing __new__() to be subclassed.Julian Andres Klode1-1/+2
2009-06-05python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.Julian Andres Klode1-0/+2
2009-06-03python/: Convert most names to PEP8 naming conventions (except ↵Julian Andres Klode1-0/+10
Version,PackageFile,MetaIndex). On our way to close Bug#481061, this converts almost all names to PEP 8 naming conventions. Missing are now apt_pkg.Version, apt_pkg.PackageFile, apt_pkg.MetaIndex and apt.progress.*. In case of the missing apt_pkg classes, they are not converted yet because they do not use getset descriptors yet. apt.progress.* has not been converted yet because the extension interacts with it, and we first need to modify the extension to recognize the new names, as well as the old names (old applications shouldn't break).
2009-04-19* python/*.cc: Export all types and add a __new__() method to them.Julian Andres Klode1-19/+33
Some names may be changed before the release, but this is a good draft.
2009-04-15* Introduce support for Python 3 (Closes: #523645)Julian Andres Klode1-0/+2
This is the first initial port to Python 3. The API is almost completely identical to the one found in Python 2, except that functions working with binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode). Using setup3.py to install the modules will not work, because the apt package still has to be converted to Python 3. For the package, we call 2to3-3.1 in debian/rules to do this automatically.
2009-04-14* python/pkgmanager.cc: Use tp_methods and tp_getset for PkgManagerTypeJulian Andres Klode1-18/+34
2008-05-16Remove trailing whitespace.Ben Finney1-11/+11
2006-09-12* python/pkgmanager.cc:Michael Vogt1-1/+1
- fix typo
2005-11-22* fixes in the acquire interface code (use CppPyObject with pkgAcquire* ↵Michael Vogt1-4/+3
directly instead of using a PkgAcquireStruct)
2005-11-22* python/sourcelist.cc cleaned upMichael Vogt1-5/+4
2005-11-22* another bugfix in the new pkgPackageManager wrapperMichael Vogt1-4/+2
2005-11-22* fix in the pkgmanager.cc code (/me needs to be hit with a clue-stick)Michael Vogt1-13/+43
2005-11-18* basic pkgAcquire + pkgPackageManager support addedMichael Vogt1-0/+109