summaryrefslogtreecommitdiff
path: root/apt/cache.py
AgeCommit message (Collapse)AuthorFilesLines
2010-07-06apt/cache.py: use apt_pkg.config instead of apt_pkg.ConfigMichael Vogt1-1/+2
2010-07-02merged lp:~kiwinote/python-apt/merge-gdebi-changes, this port theMichael Vogt1-8/+16
DebPackage class fixes from gdebi into python-apt so that gdebi can use the class from python-apt directly
2010-06-29* apt/cache.py:Michael Vogt1-0/+15
- add new "dpkg_journal_dirty" property that can be used to detect a interrupted dpkg (the famous "E: dpkg was interrupted, you must manually run 'dpkg --configure -a'")
2010-06-25Merge cache.get_providers_for() into cache.get_providing_packages() and ↵Kiwinote1-46/+44
update debfile.py to use this
2010-06-25Remove unneeded cache.downloadable()Kiwinote1-10/+0
2010-06-25Merge gdebi changesKiwinote1-14/+54
2010-06-25apt/cache.py: When iterating over the cache, do so sorted by package name.Martin Pitt1-1/+11
With this we read the the package lists linearly if we need to access the package records, instead of having to do thousands of random seeks; the latter is disastrous if we use compressed package indexes, and slower than necessary for uncompressed indexes.
2010-04-21apt/cache.py: Use has_versions and has_provides from apt_pkg.Package where ↵Julian Andres Klode1-3/+3
possible.
2010-04-21apt/cache.py: Make Cache.get_providing_packages() about 1000 times faster.Julian Andres Klode1-15/+22
2010-04-21apt/cache.py: Make Cache.req_reinstall_pkgs much faster as well.Julian Andres Klode1-4/+6
2010-04-21apt/cache.py: Make Cache.get_changes() much (~35x) faster (Closes: #578074).Julian Andres Klode1-4/+8
This change consists of the following ideas: - Switch to the low-level API - Use 'not marked_keep()' to check if a package has been modified.
2010-03-23* apt/cache.py:Michael Vogt1-1/+1
- make cache open silent by default (use apt.progress.base.OpProgress)
2010-03-01Some stylistic changes.Julian Andres Klode1-3/+7
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.