diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-15 22:45:21 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-15 22:45:21 +0000 |
commit | 141735d67c064ec78aa77a08271191df3dc3bc7c (patch) | |
tree | ca1357d2672e18f29100606a0ffd5ac89ef3dba2 | |
parent | dcc252947317c558883ed28581d0731f095b1b91 (diff) | |
download | portage-141735d67c064ec78aa77a08271191df3dc3bc7c.tar.gz portage-141735d67c064ec78aa77a08271191df3dc3bc7c.tar.bz2 portage-141735d67c064ec78aa77a08271191df3dc3bc7c.zip |
Inside display_preserved_libs(), filter out any consumers that belong to the
same package as the provider.
svn path=/main/trunk/; revision=12253
-rw-r--r-- | pym/_emerge/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index a94f21767..07e8941a8 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -11500,10 +11500,16 @@ def display_preserved_libs(vardbapi): else: search_for_owners = set() for cpv in plibdata: + pkg_dblink = vardbapi._dblink(cpv) for f in plibdata[cpv]: if f in consumer_map: continue - consumers = list(linkmap.findConsumers(f)) + consumers = [] + for c in linkmap.findConsumers(f): + # Filter out any consumers that belong + # to the same package as the provider. + if not pkg_dblink.isowner(c, pkg_dblink.myroot): + consumers.append(c) consumers.sort() consumer_map[f] = consumers search_for_owners.update(consumers[:MAX_DISPLAY+1]) |