fix more prefix errors
authorFabian Groffen <grobian@gentoo.org>
Wed, 16 Jul 2008 18:11:32 +0000 (18:11 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 16 Jul 2008 18:11:32 +0000 (18:11 -0000)
svn path=/main/branches/prefix/; revision=11087

pym/portage/__init__.py
pym/portage/dbapi/vartree.py

index 69f1c67736890f2046524e7892355826e7e8a0bf..69f496e665360b1c574b8685fe4d712fc3f941af 100644 (file)
@@ -1694,7 +1694,7 @@ class config(object):
                dir_mode_map = {
                        EPREFIX_LSTRIP+"/tmp" : (                  -1, 01777,  0,  True),
                        EPREFIX_LSTRIP+"/var/tmp" : (              -1, 01777,  0,  True),
-                       EPREFIX_LSTRIP+PRIVATE_PATH : (   portage_gid, 02750, 02,  False),
+                       EPREFIX_LSTRIP+"/"+PRIVATE_PATH :(portage_gid, 02750, 02,  False),
                        CACHE_PATH.lstrip(os.path.sep) : (portage_gid,  0755, 02,  False)
                }
 
index ba163dbeace73f13b9152b18aebe855ef48f638d..a42bacf2c8740e507465974b6cc1d4639008b62c 100644 (file)
@@ -1927,7 +1927,7 @@ class dblink(object):
                        os.path.sep
                dest_root_len = len(dest_root) - 1
 
-               conf_mem_file = os.path.join(dest_root, CONFIG_MEMORY_FILE)
+               conf_mem_file = os.path.join(dest_root, EPREFIX_LSTRIP, CONFIG_MEMORY_FILE)
                cfgfiledict = grabdict(conf_mem_file)
                stale_confmem = []
 
@@ -2780,7 +2780,7 @@ class dblink(object):
                self.updateprotect()
 
                #if we have a file containing previously-merged config file md5sums, grab it.
-               conf_mem_file = os.path.join(destroot, CONFIG_MEMORY_FILE)
+               conf_mem_file = os.path.join(destroot, EPREFIX_LSTRIP, CONFIG_MEMORY_FILE)
                cfgfiledict = grabdict(conf_mem_file)
                if "NOCONFMEM" in self.settings:
                        cfgfiledict["IGNORE"]=1