summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-20 08:53:46 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-20 08:53:46 +0000
commit43817da205cba8078ecb8ffc9bce800b747a91d3 (patch)
treed48b8a8c150e538685e007351d68e01ae4f9db82
parent6106e21f0c449cd6cbec37b575c8a6fe3f582820 (diff)
downloadportage-43817da205cba8078ecb8ffc9bce800b747a91d3.tar.gz
portage-43817da205cba8078ecb8ffc9bce800b747a91d3.tar.bz2
portage-43817da205cba8078ecb8ffc9bce800b747a91d3.zip
Move initialization of self.lookuplist to a more logical location for cloned config instances.
svn path=/main/trunk/; revision=3968
-rw-r--r--pym/portage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index f289acc6b..7c84d8bd5 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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):