Move initialization of self.lookuplist to a more logical location for cloned config...
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 08:53:46 +0000 (08:53 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Jul 2006 08:53:46 +0000 (08:53 -0000)
svn path=/main/trunk/; revision=3968

pym/portage.py

index f289acc6ba2ec3990ebf9855100ee443fd5580d7..7c84d8bd51ff2a4767e2a48b1665bd623d28d1b7 100644 (file)
@@ -873,6 +873,8 @@ class config:
                        self.usemask  = copy.deepcopy(clone.usemask)
 
                        self.configlist = copy.deepcopy(clone.configlist)
+                       self.lookuplist = self.configlist[:]
+                       self.lookuplist.reverse()
                        self.configdict = { "globals":   self.configlist[0],
                                            "defaults":  self.configlist[1],
                                            "conf":      self.configlist[2],
@@ -1223,9 +1225,6 @@ class config:
                        self["PORTAGE_PYM_PATH"] = PORTAGE_PYM_PATH
                        self.backup_changes("PORTAGE_PYM_PATH")
 
-               self.lookuplist=self.configlist[:]
-               self.lookuplist.reverse()
-
                self.uvlist=[]
                for x in self["USE_ORDER"].split(":"):
                        if self.configdict.has_key(x):