summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index da1b8e74..e7af5306 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1380,7 +1380,8 @@ class config:
if not self.treeVirtuals.has_key(virt):
self.treeVirtuals[virt] = []
# XXX: Is this bad? -- It's a permanent modification
- self.treeVirtuals[virt] = portage_util.unique_array(self.treeVirtuals[virt]+[cp])
+ if cp not in self.treeVirtuals[virt]:
+ self.treeVirtuals[virt].append(cp)
self.virtuals = self.__getvirtuals_compile()