summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-20 07:26:15 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-20 07:26:15 +0000
commitcc6c677253a6cb9f9d37040b7d0f458900a1eef1 (patch)
tree3774eb8246b32cc4825d52c7d4b09a10f0e2878f
parenta0756c8a37acc5f43269f0a0ddec1045682cd7cb (diff)
downloadportage-cc6c677253a6cb9f9d37040b7d0f458900a1eef1.tar.gz
portage-cc6c677253a6cb9f9d37040b7d0f458900a1eef1.tar.bz2
portage-cc6c677253a6cb9f9d37040b7d0f458900a1eef1.zip
Remove redundant initialization of CBUILD for cloned config instances.
svn path=/main/trunk/; revision=3964
-rw-r--r--pym/portage.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 134cf3b20..3838adcd8 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -1213,6 +1213,10 @@ class config:
self["PORTDIR_OVERLAY"] = " ".join(new_ov)
self.backup_changes("PORTDIR_OVERLAY")
+ if "CBUILD" not in self and "CHOST" in self:
+ self["CBUILD"] = self["CHOST"]
+ self.backup_changes("CBUILD")
+
self.lookuplist=self.configlist[:]
self.lookuplist.reverse()
@@ -1265,10 +1269,6 @@ class config:
self["FEATURES"] = " ".join(self.features)
self.backup_changes("FEATURES")
- if not len(self["CBUILD"]) and len(self["CHOST"]):
- self["CBUILD"] = self["CHOST"]
- self.backup_changes("CBUILD")
-
if mycpv:
self.setcpv(mycpv)