diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-15 16:55:07 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-15 16:55:07 +0100 |
| commit | 92cc00805d175dc013d544bcee603e8a0c031c2b (patch) | |
| tree | e33d5d7e7ae3910b67b3193401bf331aa5e80b07 /apt/cache.py | |
| parent | a0c9ec82095d2e09715e5dc953119ec4fa7b4c2e (diff) | |
| parent | fcd268692450231c98bfb6ac2e573ce466e014c7 (diff) | |
| download | python-apt-92cc00805d175dc013d544bcee603e8a0c031c2b.tar.gz | |
merged from lp:~mvo/apt/mvo
Diffstat (limited to 'apt/cache.py')
| -rw-r--r-- | apt/cache.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt/cache.py b/apt/cache.py index a4585277..8a456715 100644 --- a/apt/cache.py +++ b/apt/cache.py @@ -83,6 +83,10 @@ class Cache(object): apt_pkg.config.set("Dir", rootdir) apt_pkg.config.set("Dir::State::status", rootdir + "/var/lib/dpkg/status") + # also set dpkg to the rootdir path so that its called for the + # --print-foreign-architectures call + apt_pkg.config.set("Dir::bin::dpkg", + os.path.join(rootdir, "usr", "bin", "dpkg")) # create required dirs/files when run with special rootdir # automatically self._check_and_create_required_dirs(rootdir) |
