Move reverse NEEDED cache into CACHE_PATH and use a more descriptive name
authorMarius Mauch <genone@gentoo.org>
Sun, 18 Feb 2007 15:38:56 +0000 (15:38 -0000)
committerMarius Mauch <genone@gentoo.org>
Sun, 18 Feb 2007 15:38:56 +0000 (15:38 -0000)
svn path=/main/trunk/; revision=5992

pym/portage/dbapi/vartree.py

index 2267ca92ed307654a4af9f3f1d422efa0419f00a..3f8a07a246b8797fed0a2428a378a21f8cb934be 100644 (file)
@@ -525,7 +525,7 @@ class vardbapi(dbapi):
 
        def get_library_map(self):
                """ Read the global library->consumer map for this vdb instance """
-               mapfilename = self.getpath(".NEEDED")
+               mapfilename = os.path.join(self.root, CACHE_PATH, "library_consumers")
                if not os.path.exists(mapfilename):
                        self.update_library_map()
                rValue = {}
@@ -537,7 +537,7 @@ class vardbapi(dbapi):
 
        def update_library_map(self):
                """ Update the global library->consumer map for this vdb instance. """
-               mapfilename = self.getpath(".NEEDED")
+               mapfilename = os.path.join(self.root, CACHE_PATH, "library_consumers")
                obj_dict = {}
                for cpv in self.cpv_all():
                        needed_list = self.aux_get(cpv, ["NEEDED"])[0]