summaryrefslogtreecommitdiff
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
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)
-rw-r--r--apt/cache.py1
-rw-r--r--debian/changelog5
2 files changed, 6 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):
diff --git a/debian/changelog b/debian/changelog
index 400b15f5..73715a36 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,11 @@ python-apt (0.7.9~exp3) experimental; urgency=low
- fix incorrect indent
* debian/control:
- add Recommends to iso-codes (for iso_3166.xml)
+ * 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)
--