summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorJason Stubbs <jstubbs@gentoo.org>2005-12-31 05:25:08 +0000
committerJason Stubbs <jstubbs@gentoo.org>2005-12-31 05:25:08 +0000
commit1aee25b7d722f9a3fae5bd89bc2058ad620bf784 (patch)
tree9585faa48c13d40288c910b57a2c8b7d8ecfb830 /pym
parentbb4a2e126f761a671c1ab06efa500dabfb6007c7 (diff)
downloadportage-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.tar.gz
portage-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.tar.bz2
portage-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.zip
Redo virtuals code that relied on unique_array keeping the original order.
svn path=/main/trunk/; revision=2509
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index da1b8e742..e7af5306a 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()