summaryrefslogtreecommitdiff
path: root/apt/cache.py
diff options
context:
space:
mode:
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 928a6207..2f0eda59 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -81,6 +81,7 @@ class Cache(object):
# force apt to build its caches in memory
apt_pkg.config.set("Dir::Cache::pkgcache", "")
if rootdir:
+ rootdir = os.path.abspath(rootdir)
if os.path.exists(rootdir+"/etc/apt/apt.conf"):
apt_pkg.read_config_file(apt_pkg.config,
rootdir + "/etc/apt/apt.conf")