summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
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()