From 5cbf0b5807b4cc67818eae652b59a25d52eb9f7b Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 29 Jan 2009 09:26:03 +0100 Subject: * apt/cache.py: - when setting a alternative rootdir, read the config from it as well * python/configuration.cc, python/apt_pkgmodule.cc: - add apt_pkg.ReadConfigDir() --- apt/cache.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt') diff --git a/apt/cache.py b/apt/cache.py index 0065d14c..b74f8ef1 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -52,6 +52,9 @@ class Cache(object): # force apt to build its caches in memory apt_pkg.Config.Set("Dir::Cache::pkgcache", "") if rootdir: + print "reading apt.conf" + apt_pkg.ReadConfigFile(apt_pkg.Config, rootdir+"/etc/apt/apt.conf") + apt_pkg.ReadConfigDir(apt_pkg.Config, rootdir+"/etc/apt/apt.conf.d") apt_pkg.Config.Set("Dir", rootdir) apt_pkg.Config.Set("Dir::State::status", rootdir + "/var/lib/dpkg/status") -- cgit v1.2.3