summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 15:36:14 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-08-24 15:36:14 +0200
commit545fcd342c772168c0f8ee27c82fde6052efd7a0 (patch)
treec59aa9f644363cd254e19b34d39ce2cbf7243bdc
parent353d2494c234d87cb63affd07a927d1030fa9721 (diff)
parentbf4f2623d4002d60053d06251caabaa266272402 (diff)
downloadpython-apt-545fcd342c772168c0f8ee27c82fde6052efd7a0.tar.gz
* apt/cache.py:
- add actiongroup() method (backport from 0.7.92)
-rw-r--r--apt/cache.py9
-rw-r--r--debian/changelog7
2 files changed, 16 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 756f9ba9..59fe7664 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -334,6 +334,15 @@ class Cache(object):
a signal then """
self._runCallbacks("cache_pre_change")
+ def actiongroup(self):
+ """Return an ActionGroup() object for the current cache.
+
+ Action groups can be used to speedup actions. The action group is
+ active as soon as it is created, and disabled when the object is
+ deleted or when release() is called.
+ """
+ return apt_pkg.GetPkgActionGroup(self._depcache)
+
def connect(self, name, callback):
""" connect to a signal, currently only used for
cache_{post,pre}_{changed,open} """
diff --git a/debian/changelog b/debian/changelog
index b75d07b7..642dc456 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-apt (0.7.13.2) UNRELEASED; urgency=low
+
+ * apt/cache.py:
+ - add actiongroup() method (backport from 0.7.92)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 24 Aug 2009 13:41:38 +0200
+
python-apt (0.7.13.1) unstable; urgency=low
* apt/package.py: