Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-10-23 | python/policy.cc: (scan-build): Fix a dead assignment | Julian Andres Klode | 1 | -2/+2 | |
We need to use else if, otherwise the first cases are not handled at all. | |||||
2013-10-08 | apt_pkg: Support paths supplied as bytes objects (See: #680971) | Julian Andres Klode | 1 | -4/+6 | |
We should be done now. DO NOT MERGE | |||||
2012-01-30 | REFACTOR: python/policy.cc update error to include PackageFile() too | Michael Vogt | 1 | -1/+1 | |
2012-01-30 | GREEN: policy should suppors PkgVerFile now | Michael Vogt | 1 | -0/+3 | |
2011-04-12 | apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820) | Julian Andres Klode | 1 | -1/+1 | |
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. | |||||
2010-04-21 | python: Commit documentation changes suggested by debian-l10n-english. | Julian Andres Klode | 1 | -3/+3 | |
2010-04-01 | python: Document every class, function, property. | Julian Andres Klode | 1 | -15/+18 | |
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes. | |||||
2010-01-27 | Merge the CppOwnedPyObject C++ class into CppPyObject. | Julian Andres Klode | 1 | -7/+7 | |
2010-01-15 | python/indexrecords.cc,python/policy.cc: Rename functions. | Julian Andres Klode | 1 | -28/+28 | |
2009-07-13 | python: Rename all PyTypeObject's to conform to PEP 7. | Julian Andres Klode | 1 | -6/+6 | |
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API. | |||||
2009-07-12 | python/policy.cc: Disable Policy.read_pindir() on apt < 0.7.22. | Julian Andres Klode | 1 | -0/+4 | |
2009-07-07 | python/policy.cc: Add Policy_ReadPinDir() [APT 0.7.22] | Julian Andres Klode | 1 | -0/+14 | |
2009-06-25 | python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT(). | Julian Andres Klode | 1 | -4/+1 | |
This is related to PEP 3123 and fixes some compiler warnings. | |||||
2009-06-25 | python/policy.cc: Use strcmp() for comparing strings. | Julian Andres Klode | 1 | -3/+3 | |
2009-06-21 | python: Make all CppOwnedPyObjects and similar support garbage collection. | Julian Andres Klode | 1 | -4/+5 | |
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. | |||||
2009-06-12 | Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149) | Julian Andres Klode | 1 | -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-09 | Add apt_pkg.Policy class (Closes: #382725) | Julian Andres Klode | 1 | -0/+189 | |