summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.cc
AgeCommit message (Collapse)AuthorFilesLines
2011-04-05Introduce apt_pkg.Cache.groups and apt_pkg.Cache.group_countJulian Andres Klode1-0/+1
2011-04-05Add apt_pkg.Group class, wrapping pkgCache::GrpIteratorJulian Andres Klode1-0/+4
2011-03-21 - add optional parameter to allow parse_depends() to keep theMichael Vogt1-3/+4
multiarch parameter * tests/test_deps.py: - add test forapt_pkg.parse_depends(strip_multiarch=True)
2011-03-21* python/apt_pkgmodule.cc:Michael Vogt1-2/+3
- strip multiarch by default in RealParseDepends
2010-07-23* python/apt_pkgmodule.cc:Julian Andres Klode1-0/+2
- Bind pkgAcquire::Item::StatTransientNetworkError (Closes: #589010)
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-25/+27
2010-04-01python: Document every class, function, property.Julian Andres Klode1-43/+123
Finally, a complete reference to apt_pkg available via pydoc and __doc__ attributes.
2010-04-01python: Return bool instead of int to Python where possible, looks better.Julian Andres Klode1-2/+2
2010-03-10python/apt_pkgmodule.cc: Fix apt_pkg.CompType to use CompTypeOld.Julian Andres Klode1-7/+13
2010-03-10* python/apt_pkgmodule.cc:Julian Andres Klode1-0/+30
- Treat '>>' and '>', '<<' and '<' as identical in check_dep (LP: #535667). * tests: - test_deps: Add tests for apt_pkg.CheckDep, apt_pkg.check_dep, apt_pkg.parse_depends and apt_pkg.parse_src_depends.
2010-02-02Remove inline functions from the C++ API, export them instead (part 2).Julian Andres Klode1-3/+33
2010-01-27Remove inline functions from the C++ API, export them instead (part 1)Julian Andres Klode1-2/+33
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-2/+2
2010-01-23python: Export a PyAcquire_FromCpp which sets up a correct PyAcquireObject.Julian Andres Klode1-0/+1
2010-01-20Rename apt_pkg.PackageIndexFile to apt_pkg.IndexFile.Julian Andres Klode1-2/+2
2010-01-15python/apt_pkgmodule.cc: Rename remaining Acquire.result_* to Acquire.RESULT_*.Julian Andres Klode1-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 Klode1-0/+20
2010-01-13* python/cache.cc:Michael Vogt1-0/+2
- 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-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode1-3/+0
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-31python/configuration.cc, apt_pkgmodule.cc: Fix Configuration segfaults.Julian Andres Klode1-1/+1
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-24python/apt_pkgmodule.cc: Move all constants here.Julian Andres Klode1-1/+34
Now the constants are accessible from the types, and not only from instances.
2009-07-22python: First step of fixing acquire stuff.Julian Andres Klode1-0/+32
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-21python/python-apt.h: Export PyAcquireWorker and fix some problems.Julian Andres Klode1-0/+1
2009-07-21python/lock.cc: Implement apt_pkg.FileLock().Julian Andres Klode1-0/+1
This is yet another context manager, this time for locking files. It can be used multiple times and features an internal counter.
2009-07-20python/lock.cc: Introduce apt_pkg.SystemLock context manager.Julian Andres Klode1-0/+1
This is the new alternative to pkgsystem_lock() and pkgsystem_unlock(), and is the recommended one.
2009-07-19python/apt_pkgmodule.cc: Fix apt_pkg.gettext to not ignore second parameter.Julian Andres Klode1-2/+1
2009-07-19python/cdromprogress.cc: Add apt_pkg.CdromProgress.Julian Andres Klode1-0/+1
2009-07-17python/apt_pkgmodule.cc: Introduce apt_pkg.gettext().Julian Andres Klode1-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-16python/acquire.cc: Introduce PyAcquireWorker_Type, make ↵Julian Andres Klode1-6/+7
PyAcquireItemDesc_Type contain a pointer.
2009-07-15python/acquire.cc: Add AcquireItemDesc.Julian Andres Klode1-0/+2
2009-07-15Introduce new progress (base) classes in apt_pkg:Julian Andres Klode1-0/+2
- apt_pkg.AcquireProgress - apt_pkg.OpProgress
2009-07-15python/python-apt.h: Introduce the C++ APIJulian Andres Klode1-0/+38
The C++ API provides support for creating Python objects from C++ objects given by pointer or reference (depending on the implementation of the Python object) and for retrieving the underlying C++ object from the Python object and for checking the type of the Python object.
2009-07-14python/configuration.cc: Unify all ↵Julian Andres Klode1-5/+4
Configuration,ConfigurationPtr,ConfigurationSub into one type. This makes the whole API easier. The disadvantage is that we require 8 bytes (??) more per object for the owner object pointer, which is NULL for most cases (the only exception being objects created by Configuration.sub_tree).
2009-07-13python/apt_pkgmodule.cc: Remove all dependendy type constants, and cleanup.Julian Andres Klode1-87/+41
The dependency type constants have no use, because we do not export values anywhere. The cleanup moves all #ifdef COMPAT_0_7 together into one section.
2009-07-13python/apt_pkgmodule.cc: Fix build on Python 2.4Julian Andres Klode1-1/+1
2009-07-13python/apt_pkgmodule.cc: Add function name to ParseDepends and friends.Julian Andres Klode1-6/+7
2009-07-13python/apt_pkgmodule.cc, python/apt_instmodule.cc: Remove useless state.Julian Andres Klode1-22/+7
This was copied over from "Porting Extension Modules to 3.0", and is not really needed.
2009-07-13python/apt_pkgmodule.cc: ParseDepends_old only needed in COMPAT_0_7.Julian Andres Klode1-0/+2
2009-07-13python: Rename all PyTypeObject's to conform to PEP 7.Julian Andres Klode1-31/+31
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
2009-07-12python/hashes.cc: Introduce the Hashes class.Julian Andres Klode1-0/+1
The Hashes class is a function which calculates all supported hashes for one input. DebImg will use this for calculating the hashes of files.
2009-07-08python/apt_pkgmodule.cc: Unify dep handling -- part 1: parse_depends()Julian Andres Klode1-5/+14
apt_pkg.parse_[src_]depends() now use CompType instead of CompTypeDeb (i.e. < instead of <<) to match the interface of Version.depends_list_str.
2009-06-21python/apt_pkgmodule.cc: Delete apt_pkg.Version constant [API break]Julian Andres Klode1-1/+1
We can not keep the old apt_pkg.Version constant, because the name Version is already used by the Version class.
2009-06-21python: Add DeprecationWarning to functions which were replaced by classes.Julian Andres Klode1-0/+2
2009-06-09python/apt_pkgmodule.cc: Fix the modulename.Julian Andres Klode1-1/+1
2009-06-09Add apt_pkg.Policy class (Closes: #382725)Julian Andres Klode1-0/+1
2009-06-09python/cache.cc: Fix segfaults using the new allocation methods.Julian Andres Klode1-2/+3
We switched to using tp_alloc() to create new objects. Some types had no tp_flags set and were not initialized using PyType_Ready, causing tp_alloc (PyType_GenericAlloc) to crash.
2009-06-08Add apt_pkg.HashString and apt_pkg.IndexRecords (Closes: #456141)Julian Andres Klode1-0/+2
2009-06-05python/: Put all deprecated Get*() functions into #ifdef COMPAT_0_7.Julian Andres Klode1-0/+2
2009-06-05python/apt_pkgmodule.cc: Fix refcount problem.Julian Andres Klode1-1/+3