summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-08-18doc/source/c++/: Add C++ API documentation (no content yet).Julian Andres Klode3-0/+12
2009-08-18debian/copyright: Update.Julian Andres Klode1-1/+9
2009-08-18tests/test_cache_invocation.py: Fix for COMPAT_0_7=0.Julian Andres Klode1-10/+5
We dropped the special progress base classes some time ago, but still checked here.
2009-08-18apt/debfile.py: Adapt to class-based API (WARNING: changes behavior on ↵Julian Andres Klode1-18/+7
certain invalid packages). Use the class-based API now. This also means that if the archive is no valid Debian package (because it misses a 'data.tar.*', 'control.tar.gz' or a 'debian-binary' member) the method open() will now raise an Error; previously it only raised an error if there was no 'debian-binary' member or no 'control.tar.gz' member.
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-18debian/changelog: Classes in apt_inst now close LP: #44493.Julian Andres Klode1-1/+3
2009-08-17python/arfile.cc: Introduce DebFile.Julian Andres Klode4-1/+176
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 Klode4-1/+424
2009-08-07python/arfile.cc: Introduce apt_inst.ArArchive and apt_inst.ArMember.Julian Andres Klode5-8/+354
This is part one of wishlist Bug#536096, introducing classes in apt_inst.
2009-08-03tests/test_cache_invocation.py: Adapt to new progress API.Julian Andres Klode1-4/+5
2009-08-03Merge 0.7.12.1Julian Andres Klode3-4/+17
2009-08-03Release 0.7.12.1Julian Andres Klode1-2/+2
2009-08-03* apt/debfile.py: Fix missing space in message (Closes: #539704)Julian Andres Klode2-1/+3
2009-08-02* setup.py: Always build documentation, even if python-gtk2 is not installed.Julian Andres Klode2-6/+2
2009-08-02debian/control: Do not build-depend on python-gtk2 and python-vte on kfreebsd-*.Julian Andres Klode2-2/+4
2009-08-02Only recommend lsb-release instead of depending on it. Default toJulian Andres Klode4-13/+33
Debian unstable if lsb_release is not available.
2009-07-31debian/changelog: Add note about documentation updates.Julian Andres Klode1-0/+1
2009-07-31debian/changelog: Rework latest changelog block to be more readable.Julian Andres Klode1-21/+23
2009-07-31apt/package.py: Fix apt_pkg.Version_compare => apt_pkg.version_compare.Julian Andres Klode1-2/+2
2009-07-31apt/progress: Large update, introducing apt.progress.base.InstallProgress.Julian Andres Klode7-305/+225
This contains many updates including the introduction of a new InstallProgress class which replaces the old InstallProgress and DpkgInstallProgress classes.
2009-07-31apt/progress/gtk2.py: Cleanup.Julian Andres Klode1-15/+21
2009-07-31apt/progress/old.py: Derive some more old classes from new classes.Julian Andres Klode1-33/+10
OpTextProgress is now derived from text.OpProgress and DumbInstallProgress is derived from base.InstallProgress.
2009-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode13-578/+36
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-31apt/progress/base.py: Introduce new base progress classes.Julian Andres Klode2-20/+183
Also adjust the class in apt/progress/text.py to derive from this instead of the classes in apt_pkg (which will be dropped).
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-31* apt/package.py: Add missing argument to Version.__le__() and Version.__ge__()Julian Andres Klode2-2/+9
2009-07-30debian/control: Explicitly specify the versions to build for.Julian Andres Klode1-3/+5
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-30debian/rules: Add -DCOMPAT_0_7 to the CFLAGS again.Julian Andres Klode1-1/+1
2009-07-30debian/control: Add 3.1 to XS-Python-Version.Julian Andres Klode1-1/+1
2009-07-30Merge 0.7.11.1-0.7.12.0 from unstable.Julian Andres Klode11-100/+169
2009-07-30debian/control: Do not use versioned build-deps on python-all-{dev,dbg}.Julian Andres Klode1-2/+2
Debhelper should conflict against older versions, as it uses --install-layout. But we should'nt do debhelper's work here.
2009-07-30apt/progress/__init__.py: Fix InstallProgress.waitChild()Julian Andres Klode2-2/+6
- Do not break out of InstallProgress.waitChild()'s loop just because it is hitting EINTR, but only on child exit or on ECHILD.
2009-07-30debian/changelog: Close #523998 as wellJulian Andres Klode1-0/+1
2009-07-30Return VersionList objects in Package.versions, which are sequences and also ↵Julian Andres Klode2-3/+85
provide features of mappings. (partial API BREAK)
2009-07-30apt/package.py: Make comparisons of Version object more robust.Julian Andres Klode2-11/+42
2009-07-30Use debhelper 7 instead of CDBSJulian Andres Klode7-44/+28
2009-07-30Only create Package objects when they are requested, do not keep them inJulian Andres Klode2-16/+28
a dict. Saves 10MB for 25,000 packages on my machine.
2009-07-30apt/package.py: Allow to set the candidate of a package (Closes: #523997)Julian Andres Klode2-3/+17
+ Support assignments to the 'candidate' property of Package objects. + Initial patch by Sebastian Heinlein
2009-07-30apt/cache.py: Provide broken_count, delete_count, install_count, keep_count ↵Julian Andres Klode2-0/+22
properties (Closes: #532338)
2009-07-30apt/progress.py: Extract the package name from the status messageJulian Andres Klode2-2/+7
(Closes: #532660)
2009-07-30debian/control: Update Standards-Version to 3.8.2Julian Andres Klode2-1/+2
2009-07-30* apt/cache.py: Call InitSystem() if rootdir is not None (LP: #320665).Julian Andres Klode2-0/+6