Do not use aux_get to parse the NEEDED file as we need to distinguish spaces and...
authorMarius Mauch <genone@gentoo.org>
Thu, 11 Oct 2007 08:14:31 +0000 (08:14 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 11 Oct 2007 08:14:31 +0000 (08:14 -0000)
svn path=/main/trunk/; revision=8048

pym/portage/dbapi/vartree.py

index bbe3a21813170a62866c316de8bf44b8f350f27c..2b226ffc4ec0a1fd9dde7445a9f70d836424b880 100644 (file)
@@ -147,8 +147,8 @@ class LibraryPackageMap(object):
                """ Update the global library->consumer map for the given vdb instance. """
                obj_dict = {}
                for cpv in self._dbapi.cpv_all():
-                       needed_list = self._dbapi.aux_get(cpv, ["NEEDED"])[0]
-                       for l in needed_list.split("\n"):
+                       needed_list = grabfile(self._dbapi.getpath(cpv, "NEEDED"))
+                       for l in needed_list
                                mysplit = l.split()
                                if len(mysplit) < 2:
                                        continue