Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2013-10-23 | python/depcache.cc: Add more error handling to PkgDepCacheCommit | Julian Andres Klode | 1 | -1/+1 | |
It returned false, but should have returned NULL after handling errors. | |||||
2013-10-23 | python/{depcache.cc,string.cc}: Ignore deprecation warnings for some calls | Julian Andres Klode | 1 | -0/+2 | |
Those functions are deprecated in APT, but we still need to provide them for backwards compatibility. | |||||
2013-10-23 | python/*.cc: Get rid of the easy-to-replace deprecated APT functions | Julian Andres Klode | 1 | -1/+3 | |
We cannot get rid of the InstallProtect and StrToTime calls for backwards compatibility, but let's drop the others. | |||||
2013-09-11 | Remove old API compatibility C++ support code | Julian Andres Klode | 1 | -25/+0 | |
2011-11-10 | fix build against apt in experimental | Michael Vogt | 1 | -0/+1 | |
2011-04-12 | apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820) | Julian Andres Klode | 1 | -6/+6 | |
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. | |||||
2011-02-18 | * python/depcache.cc: | Michael Vogt | 1 | -0/+30 | |
- provide bindings for new libapt SetCandidateRelease() * debian/control: - require new libapt-pkg-dev SetCandidateRelease() | |||||
2010-12-22 | python/depcache.cc: remove Py_DECREF, that is one too much (thanks to juliank) | Michael Vogt | 1 | -1/+0 | |
2010-12-22 | * python/depcache.cc: | Michael Vogt | 1 | -1/+3 | |
- when using the actiongroup as a contextmanager incref/decref on enter and leave. this should fix the instablity issues that aptdaemon runs into (LP: #691134) | |||||
2010-12-07 | * python/generic.h: | Michael Vogt | 1 | -1/+2 | |
- set Object to NULL in CppDeallocPtr * python/depcache.cc: - don't run "actiongroup.release()" if the object was already deallocated | |||||
2010-09-20 | fix return type of DebSize() and UsrSize(), thanks to | Michael Vogt | 1 | -2/+2 | |
Sebastian Heinlein, LP: #642936 | |||||
2010-04-21 | python: Commit documentation changes suggested by debian-l10n-english. | Julian Andres Klode | 1 | -11/+21 | |
2010-04-01 | python: Document every class, function, property. | Julian Andres Klode | 1 | -40/+132 | |
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes. | |||||
2010-04-01 | python: Return bool instead of int to Python where possible, looks better. | Julian Andres Klode | 1 | -22/+22 | |
2010-02-27 | * python: | Julian Andres Klode | 1 | -44/+2 | |
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used. | |||||
2010-01-27 | Merge the CppOwnedPyObject C++ class into CppPyObject. | Julian Andres Klode | 1 | -21/+21 | |
2009-07-13 | python: No zero-size arrays for char *kwlist[]. | Julian Andres Klode | 1 | -3/+3 | |
2009-07-13 | python: Rename all PyTypeObject's to conform to PEP 7. | Julian Andres Klode | 1 | -32/+32 | |
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API. | |||||
2009-07-12 | python/depcache.cc: Set NoDelete for DepCaches, instead of using the wrong ↵ | Julian Andres Klode | 1 | -4/+5 | |
dealloc function. | |||||
2009-07-11 | python/depcache.cc: Introduce DepCache.policy property. | Julian Andres Klode | 1 | -0/+13 | |
This property allows you to access the Policy of the DepCache. | |||||
2009-06-25 | python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT(). | Julian Andres Klode | 1 | -12/+3 | |
This is related to PEP 3123 and fixes some compiler warnings. | |||||
2009-06-25 | python: Fix some build warnings. | Julian Andres Klode | 1 | -3/+0 | |
2009-06-22 | Add apt_pkg.DepCache.mark_auto() and apt.Package.mark_auto() methods to | Julian Andres Klode | 1 | -0/+18 | |
mark a package as automatically installed. | |||||
2009-06-21 | python: Make all CppOwnedPyObjects and similar support garbage collection. | Julian Andres Klode | 1 | -10/+13 | |
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-21 | python: Add DeprecationWarning to functions which were replaced by classes. | Julian Andres Klode | 1 | -0/+8 | |
2009-06-14 | python/cache.cc,depcache.cc: Do not delete the depcache and cache pointers. | Julian Andres Klode | 1 | -1/+2 | |
Deleting the pointers caused a crash because those pointers will also be deleted by closing the cache file. | |||||
2009-06-12 | Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149) | Julian Andres Klode | 1 | -3/+3 | |
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 | Allow types providing __new__() to be subclassed. | Julian Andres Klode | 1 | -3/+6 | |
2009-06-05 | python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7. | Julian Andres Klode | 1 | -2/+6 | |
2009-06-05 | Introduce the rename rules formally, and add some exceptions. | Julian Andres Klode | 1 | -2/+2 | |
2009-06-04 | python/: Unify naming conventions for all new names. | Julian Andres Klode | 1 | -10/+10 | |
Unify all names to follow these rules: 1. Replace the first [A-Z] with the lowercase version [a-z] 2. Replace multiple [A-Z] with [A-Z][a-z] (one upper, remaining ones lowercase) 3. Replace all remaining [A-Z] with _[a-z] This brings us from 'FileName' to 'file_name' and from 'DescURI' to 'desc_uri'. We will at a later stage add some exceptions to this rule, like 'filename' instead of 'file_name', to improve readability. | |||||
2009-06-03 | python/: Convert most names to PEP8 naming conventions (except ↵ | Julian Andres Klode | 1 | -8/+49 | |
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-24 | * python/*.cc: Fix build failures with python2.4-dbg. | Julian Andres Klode | 1 | -2/+2 | |
2009-04-19 | ActionGroups can be used as a context manager for the 'with' statement. | Julian Andres Klode | 1 | -5/+27 | |
2009-04-19 | * python/*.cc: Export all types and add a __new__() method to them. | Julian Andres Klode | 1 | -44/+96 | |
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 Klode | 1 | -0/+6 | |
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/depcache.cc: Use tp_methods and tp_getset for PkgDepCacheType | Julian Andres Klode | 1 | -28/+49 | |
2009-04-14 | * Remove any trailing whitespace | Julian Andres Klode | 1 | -6/+6 | |
2009-04-13 | * python/cdrom.cc, python/depcache.cc: Use tp_methods for Cdrom, ↵ | Julian Andres Klode | 1 | -20/+30 | |
ProblemResolver, ActionGroup | |||||
2009-01-11 | Merge Ben Finney's whitespace changes (Closes: #481563) | Julian Andres Klode | 1 | -85/+85 | |
2008-07-31 | fix GetCandidateVer() reporting incorrect versions after | Michael Vogt | 1 | -2/+4 | |
SetCandidateVer() was used. Thanks to Julian Andres Klode for the test-case (LP: #237372) | |||||
2008-05-16 | Remove trailing whitespace. | Ben Finney | 1 | -85/+85 | |
2007-12-04 | merged from the ubuntu branch | Michael Vogt | 1 | -1/+1 | |
2007-11-23 | * python/depcache.cc: | Michael Vogt | 1 | -5/+20 | |
- be more threading friendly | |||||
2007-03-14 | * python/depache.cc: | Michael Vogt | 1 | -0/+15 | |
- properly support isAutoInstalled flag | |||||
2007-01-26 | * support "fromUser()" flag in apt.Package.markInstall() to make | Michael Vogt | 1 | -2/+4 | |
setting the automatic install information available | |||||
2006-10-06 | * python/depcache.cc: | Michael Vogt | 1 | -0/+70 | |
- suport for pkgActionGrup added | |||||
2006-06-26 | * python/depcache.cc: | Michael Vogt | 1 | -0/+15 | |
- added "DepCache.IsGarbage" flag | |||||
2006-01-09 | * fix broken returns a usefull value now | Michael Vogt | 1 | -4/+5 | |
2006-01-09 | * added MinimizeUpgrade, Upgrade returns a bool now | Michael Vogt | 1 | -3/+19 | |