From 9a0079d8437d358d044cf60e9550e5b69b933908 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 6 Nov 2006 19:16:32 +0000 Subject: [PATCH] Make config.add_new_virtuals() work properly even if self.virtuals has previously been initialized. svn path=/main/trunk/; revision=4957 --- pym/portage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() -- 2.26.2