summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/cache.py5
-rw-r--r--debian/changelog11
2 files changed, 14 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py
index a92bd5be..384afe31 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -41,8 +41,11 @@ class Cache(object):
dictionary
"""
- def __init__(self, progress=None, rootdir=None):
+ def __init__(self, progress=None, rootdir=None, memonly=False):
self._callbacks = {}
+ if memonly:
+ # force apt to build its caches in memory
+ apt_pkg.Config.Set("Dir::Cache::pkgcache","")
if rootdir:
apt_pkg.Config.Set("Dir", rootdir)
apt_pkg.Config.Set("Dir::State::status", rootdir + "/var/lib/dpkg/status")
diff --git a/debian/changelog b/debian/changelog
index a4726ec7..2e70290a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,12 @@
+python-apt (0.7.5ubuntu2) intrepid; urgency=low
+
+ * apt/cache.py:
+ - add "memonly" option to apt.Cache() to force python-apt to
+ not touch the pkgcache.bin file (this works around a possible
+ race condition in the pkgcache.bin handling)
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 13 Jun 2008 12:14:34 +0200
+
python-apt (0.7.5ubuntu1) intrepid; urgency=low
* merged from debian-sid
@@ -87,7 +96,7 @@ python-apt (0.7.4ubuntu2) hardy; urgency=low
* use the new apt ListUpdate() code
* add example in doc/examples/update.py
- -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 04 Jan 2008 21:17:00 +0100
+ -- Michael Vogt <mvo@debian.org> Tue, 19 Feb 2008 21:06:36 +0100
python-apt (0.7.4ubuntu1) hardy; urgency=low