diff options
author | 2005-12-31 05:25:08 +0000 | |
---|---|---|
committer | 2005-12-31 05:25:08 +0000 | |
commit | 1aee25b7d722f9a3fae5bd89bc2058ad620bf784 (patch) | |
tree | 9585faa48c13d40288c910b57a2c8b7d8ecfb830 /pym/portage.py | |
parent | BUILDIR => BUILDDIR (diff) | |
download | portage-multirepo-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.tar.gz portage-multirepo-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.tar.bz2 portage-multirepo-1aee25b7d722f9a3fae5bd89bc2058ad620bf784.zip |
Redo virtuals code that relied on unique_array keeping the original order.
svn path=/main/trunk/; revision=2509
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 3 |
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() |