summaryrefslogtreecommitdiff
path: root/python/apt_pkgmodule.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-07-05Merge git://anonscm.debian.org/apt/python-aptIgor Pashev1-180/+101
Conflicts: debian/changelog python/apt_pkgmodule.cc
2015-05-07Add MULTI_ARCH_NO constant and deprecate MULTI_ARCH_NONEMichael Vogt1-1/+3
Thanks to Johannes Schauer closes: #782802
2014-11-06Add binding for apt_pkg.maybe_open_clear_signed_file()Michael Vogt1-0/+23
2014-11-06add apt_pkg.sha512sum()Michael Vogt1-2/+48
2014-09-30Embed changelog entry date and time instead of build date and timeJulian Andres Klode1-2/+7
This makes reproducible builds possible. For non-package builds, simply use the start of the Unix time. Also make sure that all time values are in the UTC timezone. Closes: #762674
2014-04-25Add support for build profilesJohannes Schauer1-5/+6
Closes: 744243
2013-10-23python/*.cc: Get rid of the easy-to-replace deprecated APT functionsJulian Andres Klode1-1/+1
We cannot get rid of the InstallProtect and StrToTime calls for backwards compatibility, but let's drop the others.
2013-10-15python/apt_pkgmodule.cc: Document second parameter of parse_{,src_}dependsJulian Andres Klode1-4/+8
The functions apt_pkg.parse_depends and apt_pkg.parse_src_depends take a second positional argument telling it whether to strip multi-arch strings or not.
2013-10-08python/apt_pkgmodule.cc: Fix documentation of version_compare (Closes: #680891)Julian Andres Klode1-2/+3
This was supposed to be fixed some time ago in mvo's bzr branch but it seems that it did not survive the git migration.
2013-10-08apt_pkg: Support paths supplied as bytes objects (See: #680971)Julian Andres Klode1-2/+2
We should be done now. DO NOT MERGE
2013-09-11Completely remove deprecated stuffJulian Andres Klode1-2/+0
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode1-157/+0
2013-08-31Use HAVE_OPEN_MEMSTREAMIgor Pashev1-0/+4
2012-03-05python/apt_pkgmodule.cc: Fix apt_pkg.Dependency.TYPE_RECOMMENDS, had ↵Julian Andres Klode1-1/+1
Suggests value previously
2011-11-10fix build against apt in experimentalMichael Vogt1-5/+6
2011-10-21python/apt_pkgmodule.cc: improve docstringMichael Vogt1-1/+2
2011-10-21* python/apt_pkgmodule.cc:Michael Vogt1-0/+27
- add apt_pkg.get_architectures() call
2011-04-29apt_pkg: Add subclassing fun to PackageManager, for #623485 as wellJulian Andres Klode1-1/+2
2011-04-27apt_pkg: Add OrderList, wanted for mancoosi (Closes: #623485)Julian Andres Klode1-1/+17
2011-04-21apt_pkg: Add apt_pkg.Version.multi_arch and friendsJulian Andres Klode1-0/+14
2011-04-12apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820)Julian Andres Klode1-34/+34
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-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.