diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-01 14:41:14 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-01 14:41:14 +0100 |
| commit | 9f0a976e63fe1f429036d9d6492fbfb06d26eae8 (patch) | |
| tree | df427def5a504cca93f8c1258bcc9e61d5d5dd1b | |
| parent | fb94875bd4e108c6d22e05d5312de7ed9f86b057 (diff) | |
| download | python-apt-9f0a976e63fe1f429036d9d6492fbfb06d26eae8.tar.gz | |
- SizeToString supports PyLong too
* apt/cache.py:
- fix rootdir
| -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 -- |
