From: Zac Medico Date: Tue, 23 Oct 2007 01:13:06 +0000 (-0000) Subject: Fix config.setinst() to return early when the given X-Git-Tag: v2.1.3.16~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8aa5f77af77c841f03d292f08f31589dca3e625b;p=portage.git 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 --- 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 = []