diff options
| author | Julian Andres Klode <jak@debian.org> | 2009-06-21 20:46:24 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2009-06-21 20:46:24 +0200 |
| commit | 6842933fb0b51aaa6fdc66e17b4645312876d0c9 (patch) | |
| tree | bda4d852dc78c19431f6a76e3e813fe5d1c272b9 /apt/cache.py | |
| parent | 99f4e7d2ae98c2f5297d681f1ee89b845b577be0 (diff) | |
| download | python-apt-6842933fb0b51aaa6fdc66e17b4645312876d0c9.tar.gz | |
apt/cache.py: Correctly handle rootdir on second and later invocations of open() (LP: #320665).
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py index 737061ad..414bd982 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -80,6 +80,10 @@ class Cache(object): if progress is None: progress = apt.progress.OpProgress() self._run_callbacks("cache_pre_open") + + # Make changes to Dir::State::Status work again, by reinitialising + # the system. + apt_pkg.init_system() self._cache = apt_pkg.Cache(progress) self._depcache = apt_pkg.DepCache(self._cache) self._records = apt_pkg.PackageRecords(self._cache) |
