summaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorFilesLines
2010-01-31python/arfile.cc: Handle the case where ararchive_new returns NULL in ↵Julian Andres Klode1-0/+2
debfile_new.
2010-01-27Remove inline functions from the C++ API, export them instead (part 1)Julian Andres Klode3-103/+244
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode23-278/+218
2010-01-27Drop the segfault prevention measures from the Acquire code, as they failJulian Andres Klode5-160/+61
to work. A replacement will be added once destruction callbacks are added in APT.
2010-01-24python/progress.h: PyFetchProgress keeps a reference to pyAcquire.Julian Andres Klode1-1/+4
2010-01-24Clone all pkgDirStream::Item's so apt_pkg.TarMember object can be usedJulian Andres Klode1-30/+43
outside of the callback function passed to go().
2010-01-24* python/tarfile.cc:Julian Andres Klode1-4/+10
- When extracting, only allocate a new buffer if the old one was too small. - Do not segfault if TarFile.go() is called without a member name.
2010-01-24python/acquire-item.cc: Add GC support to AcquireItem.Julian Andres Klode1-3/+4
AcquireItem is owned and owned items need to support the GC in case someone subclasses Acquire and creates a circular reference.
2010-01-23python: Export a PyAcquire_FromCpp which sets up a correct PyAcquireObject.Julian Andres Klode4-1/+18
2010-01-23python/acquire-item.cc: Support items without an owner set.Julian Andres Klode1-18/+20
2010-01-23* python/progress.cc:Julian Andres Klode1-2/+9
- Fix some threading issues (add some missing PyCbObj_BEGIN_ALLOW_THREADS)
2010-01-23Fix reference counting for old progress classes (Closes: #566370).Julian Andres Klode1-7/+15
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode7-41/+41
2010-01-20python/progress.cc: Always set 'percent' in OpProgress objects.Julian Andres Klode1-2/+1
2010-01-15python/apt_pkgmodule.cc: Rename remaining Acquire.result_* to Acquire.RESULT_*.Julian Andres Klode1-2/+2
2010-01-15python/indexrecords.cc,python/policy.cc: Rename functions.Julian Andres Klode2-41/+41
2010-01-15python/lock.cc,python/progress.cc: Include Python.h first to avoid warning.Julian Andres Klode2-2/+2
2010-01-15Make all class-level constants have uppercase names.Julian Andres Klode1-9/+9
2010-01-15Merge 0.7.13.5 pre.Julian Andres Klode3-16/+50
2010-01-13* python/cache.cc:Michael Vogt2-11/+18
- add UntranslatedDepType attribute to DependencyType - add DepTypeEnum that returns a value from {DepDepends, DepPreDepends, ...} * python/apt_pkgmodule.cc: - add DepDpkgBreaks, DepEnhances constants * doc/source/apt_pkg/{cache.rst, index.rst}: - update documentation as well
2009-10-28* python/progress.cc:Michael Vogt1-5/+4
- if the mediaChange() does not return anything or is not implemented send "false" to libapt
2009-08-24* python/depcache.cc:Julian Andres Klode1-0/+15
- Make ActionGroups context managers so apt.Cache.actiongroup() has the same behavior as in 0.7.92
2009-08-21Merge 0.7.13.0 from unstable.Julian Andres Klode2-3/+4
2009-08-21python/pkgsrcrecords.cc: Fix spelling error (begining should be beginning).Julian Andres Klode1-1/+1
2009-08-21python/cache.cc: Set default pulseInterval to 0 (matches apt-pkg's default).Julian Andres Klode1-1/+1
2009-08-19* apt/cache.py, python/cache.cc:Michael Vogt1-2/+3
- add optional pulseIntevall option to "update()" * po/python-apt.pot: - refreshed
2009-08-18python/tarfile.cc: Introduce TarFile.extractdata().Julian Andres Klode1-20/+77
This works by enhancing PyDirStream to support handling only one member, making the PyObjects for the current member instance variables and after calling TarFile.Go() return the value of 'py_data'.
2009-08-18python: Disable the functions in apt_inst if built without COMPAT_0_7.Julian Andres Klode3-12/+14
Developers should use the class-based API instead.
2009-08-17python/arfile.cc: Introduce DebFile.Julian Andres Klode3-0/+173
This is the final commit which Closes: #536096, as everything doable with the functions can now be done using the classes.
2009-08-08python/arfile.cc: Make functions static where possible.Julian Andres Klode1-14/+15
2009-08-08python/arfile.cc: Rewrite extraction code and add ArArchive.extractall().Julian Andres Klode1-21/+76
The extraction code now reads smaller parts and does not use FileFd anymore, so we can raise OSError with errno and filename if an error occurs. Also add extractall() to ArArchive to make our interface more like tarfile.TarFile's one.
2009-08-08python/arfile.cc: Rename getdata() to extractdata().Julian Andres Klode1-6/+6
This makes it more consistent with the interface of tarfile.TarFile, which provides a extractfile() function. Since producing a file-like object is a bit to complicated here, we simply return the string and thus name the method extractdata().
2009-08-08python/arfile.cc: Make ArArchive iterable.Julian Andres Klode1-1/+9
2009-08-08python/arfile.cc: Add ArArchive.getmembers(),getnames() and gettar().Julian Andres Klode1-19/+107
A small hack made it possible to get the list of members from the ARArchive.
2009-08-08python/tarfile.cc: Introduce wrapper around ExtractTar.Julian Andres Klode3-0/+423
2009-08-07python/arfile.cc: Introduce apt_inst.ArArchive and apt_inst.ArMember.Julian Andres Klode4-7/+352
This is part one of wishlist Bug#536096, introducing classes in apt_inst.
2009-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode8-535/+1
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-31python/progress.cc: Do not special case apt_pkg.*Progress anymore.Julian Andres Klode1-72/+51
2009-07-31python/configuration.cc, apt_pkgmodule.cc: Fix Configuration segfaults.Julian Andres Klode2-2/+4
In apt_pkgmodule, change the type to Configuration*. In configuration.cc, check that GetSelf(Self).Tree(0) != 0 before doing GetSelf(Self).Tree(0)->Parent.
2009-07-30python/cdrom.cc: Fix build failure with COMPAT_0_7.Julian Andres Klode1-1/+1
This was introduced during the partial rewrite of this file.
2009-07-30Merge 0.7.11.1-0.7.12.0 from unstable.Julian Andres Klode1-0/+25
2009-07-30merged from debian-sidMichael Vogt2-1/+25
2009-07-30* python/cache.cc:Julian Andres Klode1-1/+1
- Support Breaks, Enhances dependency types (Closes: #416247)
2009-07-27* python/tag.cc:Michael Vogt1-0/+24
- merge patch from John Wright that adds FindRaw method (closes: #538723)
2009-07-27add better commet in updateMichael Vogt1-2/+4
2009-07-24python: Fix some more possible NULL issues.Julian Andres Klode3-4/+10
2009-07-24python/cache.cc: Fix segfault if Pkg->Section == NULL.Julian Andres Klode1-14/+15
2009-07-24python/apt_pkgmodule.cc: Move all constants here.Julian Andres Klode3-43/+35
Now the constants are accessible from the types, and not only from instances.
2009-07-24python/generic.h: Do not deallocate the temporary bytes object in ↵Julian Andres Klode1-5/+1
PyUnicode_AsString.
2009-07-24python/python-apt.h: Fix PyCdrom_FromCpp to use pkgCdrom, not pkgCdrom*.Julian Andres Klode1-1/+1