summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
Diffstat (limited to 'apt')
-rw-r--r--apt/cache.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py
index 94a77fd8..efa8afb3 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -63,6 +63,9 @@ class Cache(object):
# create required dirs/files when run with special rootdir
# automatically
self._check_and_create_required_dirs(rootdir)
+ # Call InitSystem so the change to Dir::State::Status is actually
+ # recognized (LP: #320665)
+ apt_pkg.InitSystem()
self.open(progress)
def _check_and_create_required_dirs(self, rootdir):