summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-11-06 19:16:32 +0000
committerZac Medico <zmedico@gentoo.org>2006-11-06 19:16:32 +0000
commit9a0079d8437d358d044cf60e9550e5b69b933908 (patch)
tree74d771c82096215aeac8cb8c955faf68b165807e /pym
parentFor bug #154223, bridge new-style virtuals into old-style virtuals in order t... (diff)
downloadportage-multirepo-9a0079d8437d358d044cf60e9550e5b69b933908.tar.gz
portage-multirepo-9a0079d8437d358d044cf60e9550e5b69b933908.tar.bz2
portage-multirepo-9a0079d8437d358d044cf60e9550e5b69b933908.zip
Make config.add_new_virtuals() work properly even if self.virtuals has previously been initialized.
svn path=/main/trunk/; revision=4957
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index fd11dc22..4d869931 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()