summaryrefslogtreecommitdiff
path: root/python/cache.cc
AgeCommit message (Collapse)AuthorFilesLines
2015-06-10apt_pkg.Package: Drop the unset 'auto' attributeJulian Andres Klode1-4/+0
If somebody uses that, it could assume that no package is auto removable, because the attribute is always 0. So let's just remove that instead of having crazy code working the way it's not intended. Closes: #565364
2015-06-10python/cache.cc: Handle deprecation of pkgCache::PkgIterator::Section()Julian Andres Klode1-6/+12
Ignore the deprecation from the C++ compiler and generate a warning for the Python interpreter. Also, remove the section from the representation of the package.
2014-01-06Unify list of comparison type values everywhereJulian Andres Klode1-1/+2
They are now ordered and include the != and < operators in all cases.
2013-10-23python/cache.cc: Remove a check for an unsigned long value < 0Julian Andres Klode1-1/+1
This is impossible.
2013-10-23python/*.cc: Get rid of the easy-to-replace deprecated APT functionsJulian Andres Klode1-3/+3
We cannot get rid of the InstallProtect and StrToTime calls for backwards compatibility, but let's drop the others.
2013-10-21python/cache.cc: Set NoDelete=true when creating Policy, fixes segfault in ↵Julian Andres Klode1-2/+6
destructor
2013-09-11Remove old API compatibility C++ support codeJulian Andres Klode1-61/+0
2013-08-05coverity fixesMichael Vogt1-1/+1
2012-10-17merged debian-sid branchMichael Vogt1-1/+1
2012-10-01python/cache.cc: PkgCacheGetIsMultiArch(): Return calculatedJames Hunt1-1/+1
value rather than a random one.
2012-08-14* python/cache.cc:Michael Vogt1-0/+8
- add "Codename" to PackageFile object
2012-04-17merged lp:~aptdaemon-developers/python-apt/fix-cannot-locate-file with a ↵Michael Vogt1-2/+5
slighly different fix
2012-04-17* python/cache.cc:Michael Vogt1-1/+3
- ensure that pkgApplyStatus is called when the cache is opened (thanks to Sebastian Heinlein for finding this bug), LP: #659438
2012-01-30RED: policy should support verfileMichael Vogt1-0/+7
2011-04-21apt_pkg: Add apt_pkg.Version.multi_arch and friendsJulian Andres Klode1-0/+8
2011-04-12apt_pkg: Fix unsigned/long-vs-int issues (LP: #610820)Julian Andres Klode1-22/+22
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-27/+126
2011-04-05Support (name, arch) tuples in apt_pkg.Cache mappings, wrappingJulian Andres Klode1-17/+29
FindPkg() with two string parameters.
2011-04-05Change apt_pkg.Cache() so that passing None for 'progress' results inJulian Andres Klode1-2/+7
no progress output
2011-04-05Add an 'is_multi_arch' attribute to apt_pkg.Cache Julian Andres Klode1-0/+7
2011-04-04* python/cache.cc:Julian Andres Klode1-1/+30
- Add Package.get_fullname() and Package.architecture
2010-08-31python/cache.cc: revert docstring changeMichael Vogt1-2/+3
2010-08-27python/cache.cc: improve documentationMichael Vogt1-2/+3
2010-08-27python/cache.cc: doc update for provides_listMichael Vogt1-3/+2
2010-04-21python: Commit documentation changes suggested by debian-l10n-english.Julian Andres Klode1-32/+39
2010-04-21python/cache.cc: Add Package.has_provides to see which packages are provided ↵Julian Andres Klode1-0/+8
at least once.
2010-04-21Add rich compare methods to the Version object.Julian Andres Klode1-1/+20
2010-04-21Add Package.has_versions to see which packages have at least one version.Julian Andres Klode1-0/+9
2010-04-01python: Document every class, function, property.Julian Andres Klode1-72/+208
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-8/+8
2010-04-01Fix PackageFile.not_automatic to use NotAutomatic instead of NotSource.Julian Andres Klode1-1/+1
2010-03-31* python/cache.cc:Julian Andres Klode1-1/+2
- Check that 2nd argument to Cache.update() really is a SourceList object.
2010-02-27* python:Julian Andres Klode1-82/+6
- Handle deprecated attributes and methods in the tp_gettattro slot, this allows us to easily warn if a deprecated function is used.
2010-02-27* python/cache.cc:Julian Andres Klode1-5/+22
- Implement Cache.__len__() and Cache.__contains__() (Closes: #571443).
2010-01-27Merge the CppOwnedPyObject C++ class into CppPyObject.Julian Andres Klode1-57/+57
2010-01-15Merge 0.7.13.5 pre.Julian Andres Klode1-11/+26
2010-01-13* python/cache.cc:Michael Vogt1-11/+16
- 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-08-21Merge 0.7.13.0 from unstable.Julian Andres Klode1-2/+3
2009-08-21python/cache.cc: Set default pulseInterval to 0 (matches apt-pkg's default).Julian Andres Klode1-1/+1
2009-08-19* apt/cache.py, python/cache.cc:Michael Vogt1-2/+3
- add optional pulseIntevall option to "update()" * po/python-apt.pot: - refreshed
2009-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode1-6/+0
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-30* python/cache.cc:Julian Andres Klode1-1/+1
- Support Breaks, Enhances dependency types (Closes: #416247)
2009-07-24python: Fix some more possible NULL issues.Julian Andres Klode1-2/+4
2009-07-24python/cache.cc: Fix segfault if Pkg->Section == NULL.Julian Andres Klode1-14/+15
2009-07-17python/cache.cc: Only support new OpProgress() objects in apt_pkg.Cache().Julian Andres Klode1-1/+9
2009-07-17python: Use PyString_FromFormat instead of snprintf.Julian Andres Klode1-37/+30
2009-07-13python: No zero-size arrays for char *kwlist[].Julian Andres Klode1-1/+1
2009-07-13python: Rename all PyTypeObject's to conform to PEP 7.Julian Andres Klode1-30/+30
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
2009-07-12python/cache.cc: Set NoDelete for Caches, instead of using the wrong dealloc ↵Julian Andres Klode1-1/+3
function.
2009-07-12python/cache.cc: Py_DECREF the CacheFile, so it can be deleted.Julian Andres Klode1-1/+1