From: Jason Stubbs Date: Sat, 31 Dec 2005 05:25:08 +0000 (-0000) Subject: Redo virtuals code that relied on unique_array keeping the original order. X-Git-Tag: v2.1_pre3~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1aee25b7d722f9a3fae5bd89bc2058ad620bf784;p=portage.git Redo virtuals code that relied on unique_array keeping the original order. svn path=/main/trunk/; revision=2509 --- 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()