diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-23 01:13:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-23 01:13:06 +0000 |
commit | 8aa5f77af77c841f03d292f08f31589dca3e625b (patch) | |
tree | 1a59161a6927526b06c26a685d5b94c68b22ae58 /pym | |
parent | 9b172c583dd04f7ad482705b58b9892deb6687eb (diff) | |
download | portage-8aa5f77af77c841f03d292f08f31589dca3e625b.tar.gz portage-8aa5f77af77c841f03d292f08f31589dca3e625b.tar.bz2 portage-8aa5f77af77c841f03d292f08f31589dca3e625b.zip |
Fix config.setinst() to return early when the given
package already provides the virtual. (trunk r8240)
svn path=/main/branches/2.1.2/; revision=8241
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index 420228433..4cf185bbd 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1880,6 +1880,9 @@ class config: cp = dep_getkey(mycpv) for virt in virts: virt = dep_getkey(virt) + providers = self.virtuals.get(virt) + if providers and cp in providers: + continue providers = self._depgraphVirtuals.get(virt) if providers is None: providers = [] |