summaryrefslogtreecommitdiff
path: root/python/arfile.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-11-10fix build against apt in experimentalMichael Vogt1-4/+4
2011-07-13* python/arfile.cc:Michael Vogt1-20/+32
- use APT::Configuration::getCompressionTypes() instead of duplicating the supported methods here * tests/test_debfile.py: - add test for raise on unknown data.tar.xxx
2011-04-12apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820)Julian Andres Klode1-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-03-21* python/arfile.cc, apt/debfile.py:Michael Vogt1-5/+9
- add support for .xz archives * tests/test_debfile.py: - add test for xz compression
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-14/+14
2010-04-01python: Document every class, function, property.Julian Andres Klode1-10/+9
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-01-31python/arfile.cc: Handle the case where ararchive_new returns NULL in ↵Julian Andres Klode1-0/+2
debfile_new.
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-16/+16
2009-08-17python/arfile.cc: Introduce DebFile.Julian Andres Klode1-0/+171
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-07python/arfile.cc: Introduce apt_inst.ArArchive and apt_inst.ArMember.Julian Andres Klode1-0/+323
This is part one of wishlist Bug#536096, introducing classes in apt_inst.