| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2009-08-18 | python/tarfile.cc: Introduce TarFile.extractdata(). | Julian Andres Klode | 1 | -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-18 | python: Disable the functions in apt_inst if built without COMPAT_0_7. | Julian Andres Klode | 3 | -12/+14 | |
| Developers should use the class-based API instead. | |||||
| 2009-08-17 | python/arfile.cc: Introduce DebFile. | Julian Andres Klode | 3 | -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-08 | python/arfile.cc: Make functions static where possible. | Julian Andres Klode | 1 | -14/+15 | |
| 2009-08-08 | python/arfile.cc: Rewrite extraction code and add ArArchive.extractall(). | Julian Andres Klode | 1 | -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-08 | python/arfile.cc: Rename getdata() to extractdata(). | Julian Andres Klode | 1 | -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-08 | python/arfile.cc: Make ArArchive iterable. | Julian Andres Klode | 1 | -1/+9 | |
| 2009-08-08 | python/arfile.cc: Add ArArchive.getmembers(),getnames() and gettar(). | Julian Andres Klode | 1 | -19/+107 | |
| A small hack made it possible to get the list of members from the ARArchive. | |||||
| 2009-08-08 | python/tarfile.cc: Introduce wrapper around ExtractTar. | Julian Andres Klode | 3 | -0/+423 | |
| 2009-08-07 | python/arfile.cc: Introduce apt_inst.ArArchive and apt_inst.ArMember. | Julian Andres Klode | 4 | -7/+352 | |
| This is part one of wishlist Bug#536096, introducing classes in apt_inst. | |||||
| 2009-07-31 | python: Remove the progress classes in apt_pkg. | Julian Andres Klode | 8 | -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-31 | python/progress.cc: Do not special case apt_pkg.*Progress anymore. | Julian Andres Klode | 1 | -72/+51 | |
| 2009-07-31 | python/configuration.cc, apt_pkgmodule.cc: Fix Configuration segfaults. | Julian Andres Klode | 2 | -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-30 | python/cdrom.cc: Fix build failure with COMPAT_0_7. | Julian Andres Klode | 1 | -1/+1 | |
| This was introduced during the partial rewrite of this file. | |||||
| 2009-07-30 | Merge 0.7.11.1-0.7.12.0 from unstable. | Julian Andres Klode | 1 | -0/+25 | |
| 2009-07-30 | * python/cache.cc: | Julian Andres Klode | 1 | -1/+1 | |
| - Support Breaks, Enhances dependency types (Closes: #416247) | |||||
| 2009-07-27 | * python/tag.cc: | Michael Vogt | 1 | -0/+24 | |
| - merge patch from John Wright that adds FindRaw method (closes: #538723) | |||||
| 2009-07-24 | python: Fix some more possible NULL issues. | Julian Andres Klode | 3 | -4/+10 | |
| 2009-07-24 | python/cache.cc: Fix segfault if Pkg->Section == NULL. | Julian Andres Klode | 1 | -14/+15 | |
| 2009-07-24 | python/apt_pkgmodule.cc: Move all constants here. | Julian Andres Klode | 3 | -43/+35 | |
| Now the constants are accessible from the types, and not only from instances. | |||||
| 2009-07-24 | python/generic.h: Do not deallocate the temporary bytes object in ↵ | Julian Andres Klode | 1 | -5/+1 | |
| PyUnicode_AsString. | |||||
| 2009-07-24 | python/python-apt.h: Fix PyCdrom_FromCpp to use pkgCdrom, not pkgCdrom*. | Julian Andres Klode | 1 | -1/+1 | |
| 2009-07-24 | python/acquire.cc: Adjust coding style. | Julian Andres Klode | 1 | -212/+234 | |
| There were two different coding styles in this file, which was a bit confusing. | |||||
| 2009-07-24 | python/cdrom.cc: Adjust to new coding style and add docstrings. | Julian Andres Klode | 1 | -115/+128 | |
| 2009-07-24 | python/hashstring.cc: Make hashtype a descriptor, adjust coding style. | Julian Andres Klode | 1 | -26/+28 | |
| 2009-07-23 | python/configuration: Hack-in unicode character support in parse_commandline(). | Julian Andres Klode | 1 | -0/+4 | |
| 2009-07-23 | python/cdrom.cc: Do not check arguments in PkgCdromNew. | Julian Andres Klode | 1 | -4/+0 | |
| 2009-07-22 | python: 2nd part of the acquire fixes (one PyObject per C++ object). | Julian Andres Klode | 5 | -43/+54 | |
| 2009-07-22 | python: First step of fixing acquire stuff. | Julian Andres Klode | 5 | -315/+449 | |
| Basically, we only want to have on PyAcquireItem per pkgAcquire::Item, and one PyAcquireItemDesc per pkgAcquire::ItemDesc. Therefore, we store them so we can return them at a later time. | |||||
| 2009-07-22 | python/python-apt.h: Don't use Py_TYPE(op), but op->op_type. | Julian Andres Klode | 1 | -31/+31 | |
| The Py_TYPE macro does not exist in Python < 2.6 and is not documented. | |||||
| 2009-07-21 | python/progress.cc: Introduce setattr to reduce code duplication. | Julian Andres Klode | 2 | -83/+55 | |
| This way, we can replace stuff like PyObject *o = PyBuildValue("i", 0); PyObject_SetAttrString(callbackInst, "attribute", o); Py_DECREF(o) with setattr(callbackInst,"attribute","i",0); | |||||
| 2009-07-21 | python/progress.cc: Fix problems with threads. | Julian Andres Klode | 1 | -3/+11 | |
| 2009-07-21 | python/acquire.cc: Hack support for Acquire object created by PyAcquire_FromCpp. | Julian Andres Klode | 1 | -3/+10 | |
| 2009-07-21 | python/acquire.cc: Replace items vector with item_map. | Julian Andres Klode | 1 | -47/+54 | |
| 2009-07-21 | python/python-apt.h: Export PyAcquireWorker and fix some problems. | Julian Andres Klode | 2 | -3/+10 | |
| 2009-07-21 | python/lock.cc: Implement apt_pkg.FileLock(). | Julian Andres Klode | 4 | -0/+135 | |
| This is yet another context manager, this time for locking files. It can be used multiple times and features an internal counter. | |||||
| 2009-07-21 | python/lock.cc: Fix refcount in systemlock_enter and behavior of ↵ | Julian Andres Klode | 1 | -2/+12 | |
| systemlock_exit. | |||||
| 2009-07-20 | python/lock.cc: Introduce apt_pkg.SystemLock context manager. | Julian Andres Klode | 3 | -0/+125 | |
| This is the new alternative to pkgsystem_lock() and pkgsystem_unlock(), and is the recommended one. | |||||
| 2009-07-20 | Merge from debian-sid | Julian Andres Klode | 2 | -14/+70 | |
| 2009-07-19 | python/progress.cc: Use PyObject_CallObject instead of PyEval_CallObject. | Julian Andres Klode | 1 | -4/+3 | |
| 2009-07-19 | python/cdrom.cc: New style ident returns None on failure. | Julian Andres Klode | 1 | -10/+24 | |
| Returning a tuple (bool, str) is useless when one can just return a string or None. | |||||
| 2009-07-19 | python/progress.cc: CdromProgress.ask_cdrom_name() shall return None on failure. | Julian Andres Klode | 2 | -15/+23 | |
| 2009-07-19 | python/apt_pkgmodule.cc: Fix apt_pkg.gettext to not ignore second parameter. | Julian Andres Klode | 1 | -2/+1 | |
| 2009-07-19 | python/cdromprogress.cc: Add apt_pkg.CdromProgress. | Julian Andres Klode | 6 | -4/+133 | |
| 2009-07-17 | python/cache.cc: Only support new OpProgress() objects in apt_pkg.Cache(). | Julian Andres Klode | 1 | -1/+9 | |
| 2009-07-17 | python/apt_pkgmodule.cc: Introduce apt_pkg.gettext(). | Julian Andres Klode | 1 | -0/+25 | |
| Python's gettext() ignores setlocale() which causes a strange behavior because the values received from apt-pkg respect setlocale(). We circumvent this problem by calling the C version of gettext(). This is also much faster. | |||||
| 2009-07-17 | python: Use PyString_FromFormat instead of snprintf. | Julian Andres Klode | 6 | -54/+40 | |
| 2009-07-16 | python/progress.cc: Set members directly, without using Python. | Julian Andres Klode | 3 | -24/+36 | |
| 2009-07-16 | python/progress.cc: Call fail() on AcquireProgress objects. | Julian Andres Klode | 1 | -0/+5 | |
| 2009-07-16 | python/progress.h: Add Py{Acquire,Op}ProgressObject. | Julian Andres Klode | 4 | -55/+71 | |
