summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-01-23 09:59:32 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2009-01-23 09:59:32 +0100
commit16917ac913f029aed5148bdb134069901c816300 (patch)
tree1d1b694942f22d8acf22eb7ce8f7cffd8cc0c481 /apt/cache.py
parent9ecd5cc188487f6823fb450d1ef4aa3f97fcef7b (diff)
downloadpython-apt-16917ac913f029aed5148bdb134069901c816300.tar.gz
* 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)
Diffstat (limited to 'apt/cache.py')
-rw-r--r--apt/cache.py1
1 files changed, 1 insertions, 0 deletions
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):