diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-10-02 06:56:33 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-10-02 06:56:33 +0000 |
commit | b6e79bf461e793d8fdd2ff35a620305ad24b26f3 (patch) | |
tree | c75435ff736419c4efc7cf50af7b3c1f74af1e9c | |
parent | 3f2e58153be86792a9bc6d4de454c1c8500a8ae3 (diff) | |
download | portage-b6e79bf461e793d8fdd2ff35a620305ad24b26f3.tar.gz portage-b6e79bf461e793d8fdd2ff35a620305ad24b26f3.tar.bz2 portage-b6e79bf461e793d8fdd2ff35a620305ad24b26f3.zip |
Remove pointless copying of the owners dict inside display_preserved_libs().
svn path=/main/trunk/; revision=11611
-rw-r--r-- | pym/_emerge/__init__.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a29334f17..8d4027df6 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -10920,15 +10920,13 @@ def display_preserved_libs(vardbapi): consumer_map[f] = consumers search_for_owners.update(consumers[:MAX_DISPLAY+1]) - all_owners = vardbapi._owners.getFileOwnerMap(search_for_owners) + owners = vardbapi._owners.getFileOwnerMap(search_for_owners) for cpv in plibdata: print colorize("WARN", ">>>") + " package: %s" % cpv for f in plibdata[cpv]: print colorize("WARN", " * ") + " - %s" % f consumers = consumer_map[f] - owners = dict((c, all_owners[c]) - for c in consumers[:MAX_DISPLAY+1]) for c in consumers[:MAX_DISPLAY]: print colorize("WARN", " * ") + " used by %s (%s)" % (c, ", ".join([x.mycpv for x in owners[c]])) if len(consumers) == MAX_DISPLAY + 1: |