summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
authorSebastian Heinlein <sebi@sebi-laptop>2007-03-22 14:06:10 +0100
committerSebastian Heinlein <sebi@sebi-laptop>2007-03-22 14:06:10 +0100
commitd5158ac9c2d1a56f548aa5e1e8fa955b24a5a792 (patch)
treec221e8542fb8b0ef19097cd6ae597391ee8d9fc0 /apt/cache.py
parent8e179c8fd3b02b0dacac7ecbfbd08447d9c9ba43 (diff)
parent6b02ff1915b3dcd098474e1b9ccd5f89d6b777da (diff)
downloadpython-apt-d5158ac9c2d1a56f548aa5e1e8fa955b24a5a792.tar.gz
* merge
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 690510e3..9e682bd8 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -33,11 +33,10 @@ class Cache(object):
def __init__(self, progress=None, rootdir=None):
self._callbacks = {}
- self.open(progress)
-
if rootdir:
apt_pkg.Config.Set("Dir", rootdir)
apt_pkg.Config.Set("Dir::State::status", rootdir + "/var/lib/dpkg/status")
+ self.open(progress)
def _runCallbacks(self, name):
""" internal helper to run a callback """