From cc6c677253a6cb9f9d37040b7d0f458900a1eef1 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 20 Jul 2006 07:26:15 +0000 Subject: [PATCH] Remove redundant initialization of CBUILD for cloned config instances. svn path=/main/trunk/; revision=3964 --- pym/portage.py | 8 ++++---- 1 file 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) -- 2.26.2