diff options
author | Zac Medico <zmedico@gentoo.org> | 2006-11-06 19:16:32 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2006-11-06 19:16:32 +0000 |
commit | 9a0079d8437d358d044cf60e9550e5b69b933908 (patch) | |
tree | 74d771c82096215aeac8cb8c955faf68b165807e | |
parent | 7123514c5bda43457183326308dc14ded0d978d8 (diff) | |
download | portage-9a0079d8437d358d044cf60e9550e5b69b933908.tar.gz portage-9a0079d8437d358d044cf60e9550e5b69b933908.tar.bz2 portage-9a0079d8437d358d044cf60e9550e5b69b933908.zip |
Make config.add_new_virtuals() work properly even if self.virtuals has previously been initialized.
svn path=/main/trunk/; revision=4957
-rw-r--r-- | pym/portage.py | 4 |
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() |