summaryrefslogtreecommitdiff
path: root/python/apt_instmodule.cc
AgeCommit message (Collapse)AuthorFilesLines
2013-10-23python/apt_instmodule.cc: Make RETURN(x) be return on Python 2Julian Andres Klode1-1/+1
This fixes a small compiler notice.
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode1-141/+0
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-1/+1
2010-04-01python: Return bool instead of int to Python where possible, looks better.Julian Andres Klode1-5/+5
2009-08-18python: Disable the functions in apt_inst if built without COMPAT_0_7.Julian Andres Klode1-11/+8
Developers should use the class-based API instead.
2009-08-17python/arfile.cc: Introduce DebFile.Julian Andres Klode1-0/+1
This is the final commit which Closes: #536096, as everything doable with the functions can now be done using the classes.
2009-08-08python/tarfile.cc: Introduce wrapper around ExtractTar.Julian Andres Klode1-0/+2
2009-08-07python/arfile.cc: Introduce apt_inst.ArArchive and apt_inst.ArMember.Julian Andres Klode1-7/+24
This is part one of wishlist Bug#536096, introducing classes in apt_inst.
2009-07-13python/apt_pkgmodule.cc, python/apt_instmodule.cc: Remove useless state.Julian Andres Klode1-21/+6
This was copied over from "Porting Extension Modules to 3.0", and is not really needed.
2009-06-03python/: Convert most names to PEP8 naming conventions (except ↵Julian Andres Klode1-7/+14
Version,PackageFile,MetaIndex). On our way to close Bug#481061, this converts almost all names to PEP 8 naming conventions. Missing are now apt_pkg.Version, apt_pkg.PackageFile, apt_pkg.MetaIndex and apt.progress.*. In case of the missing apt_pkg classes, they are not converted yet because they do not use getset descriptors yet. apt.progress.* has not been converted yet because the extension interacts with it, and we first need to modify the extension to recognize the new names, as well as the old names (old applications shouldn't break).
2009-04-15* Introduce support for Python 3 (Closes: #523645)Julian Andres Klode1-1/+34
This is the first initial port to Python 3. The API is almost completely identical to the one found in Python 2, except that functions working with binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode). Using setup3.py to install the modules will not work, because the apt package still has to be converted to Python 3. For the package, we call 2to3-3.1 in debian/rules to do this automatically.
2009-04-13* python/*.cc: Use PyObject_AsFileDescriptor instead of fileno(PyFile_AsFile)Julian Andres Klode1-6/+15
Replace support for file objects with a more generic support for any object providing a fileno() method and for file descriptors (integers). This also helps us to port to Python 3, where the previously used PyFile_ functions are not available anymore.
2009-01-11Merge Ben Finney's whitespace changes (Closes: #481563)Julian Andres Klode1-13/+13
2008-07-31* python/apt_instmodule.cc:Michael Vogt1-2/+2
- fix bug in Rootdir cwd code
2008-07-31* python/apt_instmodule.cc:Michael Vogt1-3/+10
- do not change working dir in debExtractArchive() (LP: #184093)
2008-05-16Remove trailing whitespace.Ben Finney1-13/+13
2007-07-30* apt/debfile.py:Michael Vogt1-1/+30
- added wrapper around apt_inst.debExtract() - support dictionary like access * python/apt_instmodule.cc: - added arCheckMember()
2005-11-21* apt_inst.debExtractArchive() addedMichael Vogt1-0/+38
2004-11-24Changed include pathsArch Librarian1-2/+2
Author: jgg Date: 2002-01-08 06:53:04 GMT Changed include paths
2004-11-24Tar examining supportArch Librarian1-3/+6
Author: jgg Date: 2001-09-30 03:52:58 GMT Tar examining support
2004-11-24Initial revisionArch Librarian1-0/+83
Author: jgg Date: 2001-02-20 06:32:01 GMT Initial revision