From: Zac Medico Date: Tue, 23 Oct 2007 01:11:08 +0000 (-0000) Subject: Fix config.setinst() to return early when the given X-Git-Tag: v2.2_pre1~553 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e60f465f52a10967d685d332a7c0fb8f8096c9c;p=portage.git Fix config.setinst() to return early when the given package already provides the virtual. svn path=/main/trunk/; revision=8240 --- diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 3fe7fe405..4bf3ce85a 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2065,6 +2065,9 @@ class config(object): 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 = []