diff options
-rw-r--r-- | pym/portage.py | 8 |
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) |