diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-29 09:26:03 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-01-29 09:26:03 +0100 |
| commit | 5cbf0b5807b4cc67818eae652b59a25d52eb9f7b (patch) | |
| tree | 7a2d82984acf2cfae0d874927ffd58c361afc900 /apt/cache.py | |
| parent | 33522c90ad814bc03643fd3bea435315831a8c7f (diff) | |
| download | python-apt-5cbf0b5807b4cc67818eae652b59a25d52eb9f7b.tar.gz | |
* 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()
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 3 |
1 files changed, 3 insertions, 0 deletions
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") |
