diff options
| -rw-r--r-- | apt/cache.py | 3 | ||||
| -rw-r--r-- | debian/changelog | 4 |
2 files changed, 4 insertions, 3 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 """ diff --git a/debian/changelog b/debian/changelog index 7833dc00..e8d06ebf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,9 @@ python-apt (0.6.21) unstable; urgency=low * apt/cdrom.py: - better cdrom handling support * python/string.cc: - - SizeToString supports PyLong too + - SizeToString supports PyLong too + * apt/cache.py: + - fix rootdir -- |
