From: Zac Medico Date: Thu, 20 Jul 2006 07:26:15 +0000 (-0000) Subject: Remove redundant initialization of CBUILD for cloned config instances. X-Git-Tag: v2.1.1~177 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc6c677253a6cb9f9d37040b7d0f458900a1eef1;p=portage.git Remove redundant initialization of CBUILD for cloned config instances. svn path=/main/trunk/; revision=3964 --- 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)