Age | Commit message (Collapse) | Author | Files | Lines |
|
We currently consider two cases "unsigned char" and "char". This works
as long as "char" is signed, but this is not guaranteed. Change "char"
to "signed char" instead.
|
|
Those functions are deprecated in APT, but we still need to provide them
for backwards compatibility.
|
|
|
|
|
|
On Python 3, we need to encode filenames. We could use PyUnicode_FSConverter
but this introduces unneeded complexity in all callees, and is only available
in Python 3.1 anyway.
|
|
|
|
|
|
This fix is large, but simple in concept. Instead of relying
on Py_BuildValue and type signatures, or type-specific
conversion functions, create a new set of overloaded
MkPyNumber() functions that automatically do the right
thing for each numerical type.
|
|
* 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
|
|
|
|
- set Object to NULL in CppDeallocPtr
* python/depcache.cc:
- don't run "actiongroup.release()" if the object was already
deallocated
|
|
- Handle deprecated attributes and methods in the tp_gettattro slot, this
allows us to easily warn if a deprecated function is used.
|
|
|
|
|
|
This is part one of wishlist Bug#536096, introducing classes in
apt_inst.
|
|
PyUnicode_AsString.
|
|
This is yet another context manager, this time for locking files. It can
be used multiple times and features an internal counter.
|
|
|
|
Reason: Owner may be NULL.
|
|
PyUnicode_AsString.
|
|
Setting NoDelete to true causes the deallocation functions to not delete
the underlying C++ object. This is useful in situations where the object
is already managed somewhere else, e.g. DepCache by CacheFile.
It will also assist us in providing a flexible C++ API which only takes
ownership if requested.
|
|
This is related to PEP 3123 and fixes some compiler warnings.
|
|
|
|
|
|
|
|
If you want to subclass apt_pkg.Cache() and create an apt_pkg.DepCache()
object in it (e.g. as self.depcache) this is needed because otherwise,
Python would not know about the cyclic dependency and refuse to free any
of them.
This also changes apt_pkg.Cache to the standard deallocation schema,
because the underlying CacheFile deletes its pointers automatically on
deletion. Thus a second call is not needed.
|
|
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.
|
|
PyObject_NEW/DEL
This allows us to finally implement subclassing. Previously deletion of an
instance of a subclass caused segmentation faults, this is not the case
anymore.
|
|
|
|
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.
|
|
|
|
- use PyObject_DEL() instead of PyMem_DEL()
|
|
- deal with the api change and stay backward compatible with 2.4
|
|
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
|
|
Author: mdz
Date: 2002-03-10 05:45:34 GMT
#include <new>
|
|
Author: mdz
Date: 2002-02-26 01:36:15 GMT
Fix g++-3.0 compilation issues
|
|
Author: jgg
Date: 2002-01-08 06:53:04 GMT
Changed include paths
|
|
Author: jgg
Date: 2001-02-20 06:32:01 GMT
Initial revision
|