From 85707b8b52eba15c2ed8328e4f55f794bd242a71 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 30 Jul 2009 14:29:15 +0200 Subject: * apt/cache.py: Call InitSystem() if rootdir is not None (LP: #320665). --- apt/cache.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt') 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): -- cgit v1.2.3