diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-01 16:07:37 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-01 16:07:37 +0100 |
| commit | 872a9d732d613e28f1296c488124bc226829910c (patch) | |
| tree | 4cd093c786bdbf72c2ea219ae0c3ed5fbb4c75a0 /apt | |
| parent | c631c7d089ff1178c6ce4379aa5cb8561459ac6d (diff) | |
| parent | 9f0a976e63fe1f429036d9d6492fbfb06d26eae8 (diff) | |
| download | python-apt-872a9d732d613e28f1296c488124bc226829910c.tar.gz | |
* apt/cache.py:
- fix rootdir var
* python/string.cc:
- SizeToString supports PyLong too
* apt/cache.py:
- fix rootdir
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 3 |
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 """ |
