summaryrefslogtreecommitdiff
path: root/apt/cache.py
AgeCommit message (Collapse)AuthorFilesLines
2010-03-01Style fixes.Julian Andres Klode1-13/+14
2010-02-17* apt/cache.py:Michael Vogt1-4/+5
- call install_progress.startUpdate()/finishUpdate() to keep compatibility with older code * apt/progress/base.py: - restore "self.statusfd, self.writefd" type, provide additional self.status_pipe and self.write_pipe file like objects
2010-02-07* Fix some places where the old API was still used:Julian Andres Klode1-6/+6
- apt/utils.py: Completely ported, previous one was old-API from Ubuntu. - apt/cache.py: Use the new progress classes instead of the old ones. - apt/package.py: Various smaller issues fixed, probably caused by merge.
2010-01-23apt/cache.py: Fix Cache.update() to not raise errors on successful updates.Julian Andres Klode1-5/+6
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-7/+7
2010-01-15Return False in Cache.is_virtual_package if the package does not exist.Julian Andres Klode1-2/+6
2010-01-15Merge 0.7.13.5 pre.Julian Andres Klode1-1/+8
2010-01-13* apt/cache.pyforest.bond@outpostembedded.com1-1/+4
- isVirtualPackage: Return False instead of raising KeyError if the package is not present in the cache.
2010-01-13add "enhances" propertyMichael Vogt1-1/+3
2009-12-23* apt/cache.py: Michael Vogt1-1/+6
- improved docstring for the cache
2009-09-16Merge 0.7.13.0 - 0.7.13.3 from unstable.Julian Andres Klode1-4/+16
* apt/cache.py: - add actiongroup() method (backport from 0.7.92) - re-work the logic in commit() to fail if installArchives() returns a unexpected result * apt/progress/__init__.py: - catch exceptions in pm.DoInstall() * apt/package.py: - Export if a package is an essential one (Closes: #543428) * python/depcache.cc: - Make ActionGroups context managers so apt.Cache.actiongroup() has the same behavior as in 0.7.92 * apt/cache.py: - Add raiseOnError option to Cache.update() (Closes: #545474) * apt/package.py: - Use the source version instead of the binary version in fetch_source(). * apt/progress/__init__.py: - Correctly ignore ECHILD by checking before EINTR (Closes: #546007) * apt/cache.py: - Convert argument to str in __getitem__() (Closes: #542965).
2009-09-15apt/cache.py: Add raiseOnError option to Cache.update() (Closes: #545474)Julian Andres Klode1-2/+9
2009-09-02re-work the logic in commit() to fail if installArchives() returnsMichael Vogt1-1/+5
a unexpected result
2009-08-24* apt/cache.py:Julian Andres Klode1-0/+9
- add actiongroup() method (backport from 0.7.92)
2009-08-24merge from the debian-sid branchMichael Vogt1-5/+38
2009-08-24* apt/cache.py:Michael Vogt1-0/+9
- add actiongroup() method (backport from 0.7.92)
2009-08-22apt/cache.py: Convert argument to str in __getitem__() (Closes: #542965).Julian Andres Klode1-0/+1
2009-08-21Merge 0.7.13.0 from unstable.Julian Andres Klode1-2/+38
2009-08-21apt/cache.py, python/cache.cc: add optional pulseInterval option to "update()".Julian Andres Klode1-2/+2
2009-08-21apt/cache.py: Fix the (inst|keep|broken|del)_count attributes (Closes: #542773).Sebastian Heinlein1-4/+4
2009-08-21* apt/cache.py: Introduce ProblemResolver class (Closes: #542705)Julian Andres Klode1-1/+34
2009-08-19* apt/cache.py, python/cache.cc:Michael Vogt1-2/+2
- add optional pulseIntevall option to "update()" * po/python-apt.pot: - refreshed
2009-07-31python: Remove the progress classes in apt_pkg.Julian Andres Klode1-5/+1
They have been replaced with apt.progress.base, so stuff like GTK+ or Qt progress classes can be written using subclassing.
2009-07-30Merge 0.7.11.1-0.7.12.0 from unstable.Julian Andres Klode1-3/+3
2009-07-30Only create Package objects when they are requested, do not keep them inJulian Andres Klode1-16/+26
a dict. Saves 10MB for 25,000 packages on my machine.
2009-07-30apt/cache.py: Provide broken_count, delete_count, install_count, keep_count ↵Julian Andres Klode1-0/+20
properties (Closes: #532338)
2009-07-30* apt/cache.py: Call InitSystem() if rootdir is not None (LP: #320665).Julian Andres Klode1-0/+3
2009-07-20Merge from debian-sidJulian Andres Klode1-0/+24
2009-07-17apt: Use apt_pkg.gettext instead of Python's gettext.Julian Andres Klode1-5/+1
2009-07-17apt/__init__.py, apt/__cache__.py: Improve python-apt localization.Julian Andres Klode1-1/+6
2009-07-16apt/cache.py: Support apt_pkg.OpProgress() and use ↵Julian Andres Klode1-4/+8
apt.progress.text.OpProgress()
2009-06-21apt/cache.py: Correctly handle rootdir on second and later invocations of ↵Julian Andres Klode1-0/+4
open() (LP: #320665).
2009-06-21apt/cache.py: Only create _weakrefs, _set once per object.Julian Andres Klode1-3/+5
2009-06-15apt/cache.py: Provide broken_count, delete_count, install_count, keep_countJulian Andres Klode1-0/+20
properties (Closes: #532338)
2009-06-15* python/progress.cc:Michael Vogt1-0/+25
- fix crash in RunSimpleCallback() * apt/cache.py: - when the cache is run with a alternative rootdir, create required dirs/files automatically
2009-06-05apt/cache.py: Introduce Cache.actiongroup()Julian Andres Klode1-0/+21
This is a short function which creates an actiongroup on the current depcache.
2009-06-05Introduce the rename rules formally, and add some exceptions.Julian Andres Klode1-2/+2
2009-06-04apt, aptsources, doc: Update to use the new names.Julian Andres Klode1-39/+39
2009-04-19* Update the code to use the new classes.Julian Andres Klode1-11/+11
2009-04-17* apt/cache.py, apt/package.py: Rename the remaining arguments and variables.Julian Andres Klode1-75/+101
2009-04-16* apt/*.py: Initial rename work for Bug#481061Julian Andres Klode1-39/+69
A new module, apt.deprecation, is introduced containing functions and classes which assist in the deprecation. The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7). The names are changed, and compatibility functions are enabled if bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with backward compatibility fixes. This commit changes the apt and aptsources packages, the apt_pkg and apt_inst extensions will be the next renames.
2009-04-15* apt/cache.py: Use set() and WeakValueDictionary() for holding packages.Julian Andres Klode1-15/+23
Only create Package objects when they are requested, do not keep them in a dict. Saves 10MB for 25,000 packages on my machine. The set holds the names of all packages which have at least one version, and the WeakValueDictionary() holds weak references to created Package objects. This way accessing the same package two times should return the same object, kept by the WeakValueDictionary().
2009-04-01* Copyright updates: debian/copyright, etc.Julian Andres Klode1-1/+1
- debian/copyright: Switch to machine-interpretable copyright - apt/*.py: Fix the copyright years and comments.
2009-03-08apt/cache.py: If no progress is given for cache open, use OpProgress.Julian Andres Klode1-5/+5
Also fix doc/examples/records.py to use Package.candidate.*
2009-03-08* setup.py: Remove apt.gtk, add apt.progressJulian Andres Klode1-2/+4
2009-03-08* Merge with mvoJulian Andres Klode1-3/+5
2009-03-08* apt/cache.py, apt/package.py: Fix some bugs.Julian Andres Klode1-2/+1
2009-03-08* apt/: Adjust modules to use Package.{installed,candidate}.*Julian Andres Klode1-1/+1
2009-02-26avoid duplicated internal references of the Package object for _cache, ↵Michael Vogt1-3/+1
_depcache, _records, _list - they add up to ~10mb for the full cache on my test system and all information is available via Package._pcache