From 16917ac913f029aed5148bdb134069901c816300 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 23 Jan 2009 09:59:32 +0100 Subject: * apt/cache.py: - when running with the rootdir option, run InitConfig() again to ensure that the config from the rootdir is read, not from the host (lp: #243550) --- apt/cache.py | 1 + 1 file changed, 1 insertion(+) (limited to 'apt/cache.py') diff --git a/apt/cache.py b/apt/cache.py index 0065d14c..a8432a32 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -55,6 +55,7 @@ class Cache(object): apt_pkg.Config.Set("Dir", rootdir) apt_pkg.Config.Set("Dir::State::status", rootdir + "/var/lib/dpkg/status") + apt_pkg.InitConfig() self.open(progress) def _runCallbacks(self, name): -- cgit v1.2.3