CACHE_PATH starts with / and therefore isn't compatible with os.path.join().
authorZac Medico <zmedico@gentoo.org>
Wed, 25 Jul 2007 08:07:20 +0000 (08:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 25 Jul 2007 08:07:20 +0000 (08:07 -0000)
svn path=/main/trunk/; revision=7392

pym/portage/__init__.py

index 1fb8bb92fb86d9b87af81c11bf96bd51e0ad5d51..d7af652c648246bfcd0f4d03f252769eb744d30b 100644 (file)
@@ -1500,7 +1500,7 @@ class config(object):
                        "tmp"             : (-1,          01777, 0),
                        "var/tmp"         : (-1,          01777, 0),
                        PRIVATE_PATH      : (portage_gid, 02750, 02),
-                       CACHE_PATH        : (portage_gid, 0755, 02)
+                       CACHE_PATH.lstrip(os.path.sep) : (portage_gid, 0755, 02)
                }
 
                for mypath, (gid, mode, modemask) in dir_mode_map.iteritems():