From: Zac Medico Date: Mon, 6 Nov 2006 19:16:32 +0000 (-0000) Subject: Make config.add_new_virtuals() work properly even if self.virtuals has previously... X-Git-Tag: v2.1.2~500 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a0079d8437d358d044cf60e9550e5b69b933908;p=portage.git Make config.add_new_virtuals() work properly even if self.virtuals has previously been initialized. svn path=/main/trunk/; revision=4957 --- diff --git a/pym/portage.py b/pym/portage.py index fd11dc22e..4d8699314 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1876,7 +1876,9 @@ class config: cp = dep_getkey(cpv) new_virtuals[cp] = [cp] self._new_virtuals = new_virtuals - self.virtuals = self.getvirtuals() + # Make sure dirVirtuals and treeVirtuals are initialized. + self.getvirtuals() + self.virtuals = self.__getvirtuals_compile() def __delitem__(self,mykey): self.modifying()