From 8aa5f77af77c841f03d292f08f31589dca3e625b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 23 Oct 2007 01:13:06 +0000 Subject: [PATCH] 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 --- pym/portage.py | 3 +++ 1 file changed, 3 insertions(+) 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 = [] -- 2.26.2