Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
Finally, a complete reference to apt_pkg available
via pydoc and __doc__ attributes.
|
|
|
|
- Handle deprecated attributes and methods in the tp_gettattro slot, this
allows us to easily warn if a deprecated function is used.
|
|
|
|
|
|
|
|
|
|
This is the first step towards implementing coding guidelines for the
C++ code and providing an usable C++ API.
|
|
MetaIndex.index_files
First of all, make the objects mortal by decreasing their refcount after
adding them to the list. Secondly, make the objects owned by MetaIndex
and thirdly, set NoDelete on them, because they are managed by metaIndex.
|
|
This is related to PEP 3123 and fixes some compiler warnings.
|
|
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.
|
|
descriptors.
|
|
Some names may be changed before the release, but this is a good draft.
|
|
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.
|
|
|
|
- fix crash when incorrect attribute is given
|
|
|
|
- added support for the metaIndex objects
* python/sourceslist.cc:
- support new "List" attribute that returns the list of
metaIndex source entries
|