Fix $ROOT handlink inside display_preserved_libs().
authorZac Medico <zmedico@gentoo.org>
Sat, 8 Nov 2008 18:29:23 +0000 (18:29 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 8 Nov 2008 18:29:23 +0000 (18:29 -0000)
svn path=/main/trunk/; revision=11829

pym/_emerge/__init__.py

index b02902032a09fbb9ef6829e2d57d905bfda26bd6..ae61610173edaafd485d654d6feff709459850bb 100644 (file)
@@ -11112,11 +11112,11 @@ def display_preserved_libs(vardbapi):
                        print colorize("WARN", ">>>") + " package: %s" % cpv
                        samefile_map = {}
                        for f in plibdata[cpv]:
-                               real_path = os.path.realpath(f)
-                               alt_paths = samefile_map.get(real_path)
+                               obj_key = linkmap._obj_key(f)
+                               alt_paths = samefile_map.get(obj_key)
                                if alt_paths is None:
                                        alt_paths = set()
-                                       samefile_map[real_path] = alt_paths
+                                       samefile_map[obj_key] = alt_paths
                                alt_paths.add(f)
 
                        for alt_paths in samefile_map.itervalues():