From 2e60f465f52a10967d685d332a7c0fb8f8096c9c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 23 Oct 2007 01:11:08 +0000 Subject: [PATCH] Fix config.setinst() to return early when the given package already provides the virtual. svn path=/main/trunk/; revision=8240 --- pym/portage/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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 = [] -- 2.26.2