summaryrefslogtreecommitdiff
path: root/python/sourcelist.cc
AgeCommit message (Collapse)AuthorFilesLines
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode1-9/+0
2010-04-01python: Document every class, function, property.Julian Andres Klode1-4/+18
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 Klode1-2/+2
2010-02-27* python:Julian Andres Klode1-9/+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-5/+5
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode1-2/+2
2009-07-13python: Rename all PyTypeObject's to conform to PEP 7.Julian Andres Klode1-7/+7
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
2009-07-12python/sourcelist.cc: Do not delete the pkgIndexFile*, it is managed elsewhere.Julian Andres Klode1-1/+3
2009-07-12python/sourcelist.cc: Fix deletion of MetaIndex objects returned in ↵Julian Andres Klode1-2/+5
SourceList.list. First of all, make the objects mortal by decreasing their refcount after adding them to the list. Secondly, make the objects owned by SourceList and thirdly, set NoDelete on them, because they are managed by SourceList.
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-2/+3
2009-06-03python/: Convert most names to PEP8 naming conventions (except ↵Julian Andres Klode1-0/+8
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-1/+17
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/acquire.cc, python/sourcelist.cc: Type cleanupJulian Andres Klode1-15/+32
Use GetSet for PkgSourceListType and remove tp_getattr from PkgAcquireFileType.
2008-05-16Remove trailing whitespace.Ben Finney1-8/+8
2008-02-14* python/sourcelist.cc:Michael Vogt1-3/+3
- support GetIndexes() GetAll argument to implement something like --print-uris
2007-09-04* python/metaindex.cc:Michael Vogt1-1/+15
- added support for the metaIndex objects * python/sourceslist.cc: - support new "List" attribute that returns the list of metaIndex source entries
2006-01-04* added support for pkgIndexFileMichael Vogt1-2/+20
2005-12-05* added PkgSourceList.GetIndexes(); rewrote apt.cache.update() to use itMichael Vogt1-0/+17
2005-11-22* fixes in the acquire interface code (use CppPyObject with pkgAcquire* ↵Michael Vogt1-1/+0
directly instead of using a PkgAcquireStruct)
2005-11-22* python/sourcelist.cc cleaned upMichael Vogt1-8/+10
2005-11-18* basic pkgAcquire + pkgPackageManager support addedMichael Vogt1-6/+1
2005-05-03* merged with Greek0@gmx.net--2005-main, native apt interface added, fixed a ↵Michael Vogt1-2/+2
refcount problem, added tests/ directory * apt/package.py, apt/__init__.py: - started a native python interface that will wrap the uglier bits of python-apt in the future * tests/pkgsrcrecords.py: - started a test directory * python/pkgsrcrecords.cc: - fixed a refcount problem - merged with Greek0s tree Patches applied: * Greek0@gmx.net--2005-main/python-apt--debian--0.6--base-0 tag of apt@packages.debian.org/python-apt--main--0--patch-8 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-1 Minor typo fix in debian/rules * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-2 Typo fix in depcache.cc which caused wrong function to be called * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-3 Improved CppPyObject, leading to a better PkgDepCacheStruct * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-4 Improved build system * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-5 Restored the old tar.cc to work with the older apt in debian again * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-6 Fix for Debian #304296 (Segfault in CppOwnedDealloc) * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-7 Fix for Debian #304903 (FD leak) * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-8 Fixed the compilation error introduced in patch-6 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-9 New debian/changelog from Debians python-apt 0.6.10 * Greek0@gmx.net--2005-main/python-apt--debian--0.6--patch-10 Minor changes to make the packages lintian/linda clean * apt@packages.debian.org/python-apt--main--0--patch-8 Merge michael.vogt@ubuntu.com--2005/python-apt--pkgDepCache--0
2004-11-24* Fix broken object initialization in sourcelist.cc and...Arch Librarian1-7/+2
Author: mdz Date: 2003-12-26 17:04:22 GMT * Fix broken object initialization in sourcelist.cc and srcrecords.cc (Closes: #215792)
2004-11-24Initial support for accessing source package dataArch Librarian1-0/+83
Author: mdz Date: 2003-07-23 02:20:24 GMT Initial support for accessing source package data