summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/getbinpkg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py
index 8107207c2..977693c6d 100644
--- a/pym/portage/getbinpkg.py
+++ b/pym/portage/getbinpkg.py
@@ -700,8 +700,11 @@ class PackageIndex(object):
keys = self.header.keys()
keys.sort()
writepkgindex(pkgfile, [(k, self.header[k]) for k in keys])
+ header_chost = self.header.get("CHOST")
for cpv in cpv_all:
metadata = self.packages[cpv].copy()
+ if metadata.get("CHOST") == header_chost:
+ del metadata["CHOST"]
if metadata.get("EAPI") == "0":
del metadata["EAPI"]
if metadata.get("SLOT") == "0":