Make portdbapi._init_cache_dirs() obey self.depcachedir.
authorZac Medico <zmedico@gentoo.org>
Sun, 14 May 2006 07:07:10 +0000 (07:07 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 14 May 2006 07:07:10 +0000 (07:07 -0000)
svn path=/main/trunk/; revision=3348

pym/portage.py

index c0f63861e7b1b19ecca49c44faecce310de75910..d09b1749c0f2f52edf499ded7e38fd10e839ae4a 100644 (file)
@@ -4747,8 +4747,7 @@ class portdbapi(dbapi):
                modemask =    02
 
                try:
-                       for x in ("dep",):
-                               mydir = os.path.join(CACHE_PATH, x)
+                       for mydir in (self.depcachedir,):
                                if portage_util.ensure_dirs(mydir, gid=portage_gid, mode=dirmode, mask=modemask):
                                        writemsg("Adjusting permissions recursively: '%s'\n" % mydir)
                                        def onerror(e):