Remove soname_cache inside calc_depclean() since LinkageMap caches that
authorZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 19:33:34 +0000 (19:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 16 Oct 2009 19:33:34 +0000 (19:33 -0000)
already.

svn path=/main/trunk/; revision=14613

pym/_emerge/actions.py

index 78d4779451fad64401073b569c96e56bc094bd01..bc0a518f120d83c13818dbd919ca64043dc403be 100644 (file)
@@ -905,7 +905,6 @@ def calc_depclean(settings, trees, ldpath_mtimes,
                linkmap = real_vardb.linkmap
                consumer_cache = {}
                provider_cache = {}
-               soname_cache = {}
                consumer_map = {}
 
                writemsg_level(">>> Checking for lib consumers...\n")
@@ -942,10 +941,7 @@ def calc_depclean(settings, trees, ldpath_mtimes,
 
                        for lib, lib_consumers in consumers.items():
 
-                               soname = soname_cache.get(lib)
-                               if soname is None:
-                                       soname = linkmap.getSoname(lib)
-                                       soname_cache[lib] = soname
+                               soname = linkmap.getSoname(lib)
 
                                consumer_providers = []
                                for lib_consumer in lib_consumers: