| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2009-07-10 | python/indexrecords.cc: Correctly Decrease refcount for HashString. | Julian Andres Klode | 1 | -3/+6 | |
| Create a copy of the HashString() and create a CppPyObject for it. After adding it to the tuple, decrease the reference count. The HashString() copy allows us to deallocate the indexRecords and does not require the PyHashString objects to be CppOwnedPyObject. | |||||
| 2009-07-08 | doc/source/apt_pkg.rst: Update the documentation to reflect the latest changes. | Julian Andres Klode | 2 | -11/+35 | |
| 2009-07-08 | doc/source/whatsnew/0.8.0.rst: Document the changes to the dependency handling. | Julian Andres Klode | 1 | -0/+61 | |
| 2009-07-08 | python/pkgsrcrecords.cc: Unify dep handling -- part 2: ↵ | Julian Andres Klode | 2 | -2/+55 | |
| SourceRecords.build_depends Change apt_pkg.SourceRecords.build_depends to match exactly the interface of Version.depends_list_str just with different keys (e.g. Build-Depends). + Closes: #468123 - there is no need anymore for binding CompType or CompTypeDeb, because we don't return integer values for CompType anymore. | |||||
| 2009-07-08 | python/apt_pkgmodule.cc: Unify dep handling -- part 1: parse_depends() | Julian Andres Klode | 2 | -5/+18 | |
| apt_pkg.parse_[src_]depends() now use CompType instead of CompTypeDeb (i.e. < instead of <<) to match the interface of Version.depends_list_str. | |||||
| 2009-07-07 | python/policy.cc: Add Policy_ReadPinDir() [APT 0.7.22] | Julian Andres Klode | 1 | -0/+14 | |
| 2009-07-07 | debian/control: Build-Depend on libapt-pkg-dev (>= 0.7.22~). | Julian Andres Klode | 2 | -2/+3 | |
| 2009-06-25 | python: Use PyVarObject_HEAD_INIT() instead of PyObject_HEAD_INIT(). | Julian Andres Klode | 16 | -121/+34 | |
| This is related to PEP 3123 and fixes some compiler warnings. | |||||
| 2009-06-25 | python: Fix some build warnings. | Julian Andres Klode | 8 | -16/+13 | |
| 2009-06-25 | python/generic.h: Make PyObject_AsString() only accept unicode on Python 3. | Julian Andres Klode | 1 | -1/+11 | |
| 2009-06-25 | python/cache.cc: Support unicode objects and str objects in Python 2. | Julian Andres Klode | 3 | -9/+34 | |
| 2009-06-25 | python/tag.cc: Return False for non-strings in 'TagSection.__contains__()'. | Julian Andres Klode | 1 | -0/+2 | |
| 2009-06-25 | python/tag.cc: Store the return value of PyString_AsString as const char*. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-06-25 | python/policy.cc: Use strcmp() for comparing strings. | Julian Andres Klode | 1 | -3/+3 | |
| 2009-06-23 | python/configuration.cc: Make ConfigurationPtr,ConfigurationSub subclasses ↵ | Julian Andres Klode | 2 | -0/+7 | |
| of Configuration. This makes isinstance(apt_pkg.config, apt_pkg.Configuration) return True instead of False. | |||||
| 2009-06-23 | python/acquire.cc: Make AcquireFile a subclass of AcquireItem | Julian Andres Klode | 2 | -18/+33 | |
| Generalized the code a bit, so we can now access the various attributes of AcquireItem in the AcquireFile (pkgAcqFile is a subclass of pkgAcquire::Item). This will allow us to implement a raw object with a single pointer to an Item later, which we will need for the new progress interface. | |||||
| 2009-06-22 | debian/control: Update Standards-Version to 3.8.2 | Julian Andres Klode | 2 | -1/+2 | |
| 2009-06-22 | debian/changelog: Add entry about the merge of 0.7.10.4 | Julian Andres Klode | 1 | -0/+1 | |
| 2009-06-22 | python/cache.cc: Drop apt_pkg.Cache.open() and apt_pkg.Cache.close(). | Julian Andres Klode | 2 | -3/+8 | |
| Drop these functions, because they cause segfaults and memory leaks. To replace this functionality, simply create/delete a Cache object. This way, reference counting can work. | |||||
| 2009-06-22 | apt/package.py: Do not re-define built-in names, fix small issue in ↵ | Julian Andres Klode | 1 | -21/+25 | |
| Version.__eq__() | |||||
| 2009-06-22 | apt/package.py: Drop Package.get_version() again. | Julian Andres Klode | 1 | -4/+0 | |
| 2009-06-22 | Add apt_pkg.DepCache.mark_auto() and apt.Package.mark_auto() methods to | Julian Andres Klode | 3 | -1/+34 | |
| mark a package as automatically installed. | |||||
| 2009-06-21 | python/generic.h: Define a compat macro PyErr_WarnEx for Python 2.4 | Julian Andres Klode | 1 | -0/+5 | |
| 2009-06-21 | apt/cache.py: Correctly handle rootdir on second and later invocations of ↵ | Julian Andres Klode | 2 | -0/+6 | |
| open() (LP: #320665). | |||||
| 2009-06-21 | apt/cache.py: Only create _weakrefs, _set once per object. | Julian Andres Klode | 1 | -3/+5 | |
| 2009-06-21 | python/apt_pkgmodule.cc: Delete apt_pkg.Version constant [API break] | Julian Andres Klode | 1 | -1/+1 | |
| We can not keep the old apt_pkg.Version constant, because the name Version is already used by the Version class. | |||||
| 2009-06-21 | python: Make all CppOwnedPyObjects and similar support garbage collection. | Julian Andres Klode | 8 | -70/+125 | |
| 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 | apt/package.py: Remove duplicated code in Version.fetch_source() | Julian Andres Klode | 1 | -8/+3 | |
| 2009-06-21 | python/acquire.cc, python/indexfile.cc: Do not delete the pointers for some ↵ | Julian Andres Klode | 2 | -3/+5 | |
| objects. We can not delete the AcquireFile object's pointer on deallocation because this would cause the item to be removed from the fetcher, which would be incompatible to the previous behaviour. We can not delete the IndexFile object's pointer on deallocation because it is managed by other objects like MetaIndex. | |||||
| 2009-06-21 | python: Add DeprecationWarning to functions which were replaced by classes. | Julian Andres Klode | 10 | -8/+37 | |
| 2009-06-21 | python/cache.cc: Give more information on TypeErrors in CacheMapOp | Julian Andres Klode | 1 | -1/+3 | |
| 2009-06-21 | python/progress.cc: Just try to call a function and fallback. | Julian Andres Klode | 1 | -21/+7 | |
| 2009-06-21 | python/progress.cc: Fix segfault related to pulse_items. | Julian Andres Klode | 1 | -5/+5 | |
| 2009-06-15 | po/: Big translation files cleanup. | Julian Andres Klode | 72 | -61923/+13148 | |
| The previous translation files contained a lot of strings from update-manager which never were in python-apt. Those have been removed. The translations for French and Japanese have been merged with those provided in the BTS. The German translation has been updated to translate all strings. | |||||
| 2009-06-15 | data/templates/Debian.info.in: Squeeze will be Debian 6.0, not 5.1 | Julian Andres Klode | 1 | -1/+1 | |
| 2009-06-15 | apt/cache.py: Provide broken_count, delete_count, install_count, keep_count | Julian Andres Klode | 2 | -0/+22 | |
| properties (Closes: #532338) | |||||
| 2009-06-15 | Add support for Enhances as a dependency type (Closes: #416247) | Julian Andres Klode | 2 | -1/+2 | |
| 2009-06-15 | apt/progress/__init__.py: Check for EINTR in select (Closes: #499296) | Julian Andres Klode | 2 | -2/+9 | |
| 2009-06-14 | Merge version 0.7.10.4 from debian-sid | Julian Andres Klode | 5 | -485/+361 | |
| 2009-06-14 | apt/package.py: Return VersionList objects in Package.versions. | Julian Andres Klode | 2 | -10/+87 | |
| VersionList objects provide the same features as sequences (they are even derived from collections.Sequence in Python 2.6 and newer), but also provide a mapping like interface. They are also more efficient than lists because Version objects are only created when they are accessed. | |||||
| 2009-06-14 | apt/package.py: Re-add Package.markedInstall | Julian Andres Klode | 1 | -0/+1 | |
| 2009-06-14 | python/cache.cc,depcache.cc: Do not delete the depcache and cache pointers. | Julian Andres Klode | 2 | -2/+5 | |
| Deleting the pointers caused a crash because those pointers will also be deleted by closing the cache file. | |||||
| 2009-06-12 | apt/progress.py: Extract the package name from the status message (Closes: ↵ | Julian Andres Klode | 2 | -4/+12 | |
| #532660) | |||||
| 2009-06-12 | Bugfix: Delete pointers correctly, fixing memory leaks. (LP: #370149) | Julian Andres Klode | 12 | -18/+38 | |
| 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 | python/apt_pkgmodule.cc: Fix the modulename. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-06-09 | Add apt_pkg.Policy class (Closes: #382725) | Julian Andres Klode | 5 | -2/+196 | |
| 2009-06-09 | Allow types providing __new__() to be subclassed. | Julian Andres Klode | 13 | -17/+34 | |
| 2009-06-09 | python/cache.cc: Fix segfaults using the new allocation methods. | Julian Andres Klode | 2 | -3/+22 | |
| We switched to using tp_alloc() to create new objects. Some types had no tp_flags set and were not initialized using PyType_Ready, causing tp_alloc (PyType_GenericAlloc) to crash. | |||||
| 2009-06-09 | apt/package.py: Use destfile instead of dest_file. | Julian Andres Klode | 1 | -2/+2 | |
| 2009-06-08 | Fix build failures with python2.4-dbg (const) | Julian Andres Klode | 2 | -3/+3 | |
