From 6ec11e597af7a1c938f7e95cec80be0f3e74be17 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 6 Oct 2007 22:02:10 +0000 Subject: [PATCH] In PackageIndex.readBody(), make each package entry inherit CHOST from the header. svn path=/main/trunk/; revision=7987 --- pym/portage/getbinpkg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pym/portage/getbinpkg.py b/pym/portage/getbinpkg.py index 2aa8c97a5..8107207c2 100644 --- a/pym/portage/getbinpkg.py +++ b/pym/portage/getbinpkg.py @@ -677,6 +677,7 @@ class PackageIndex(object): self.header.update(readpkgindex(pkgfile)) def readBody(self, pkgfile): + header_chost = self.header.get("CHOST") while True: d = readpkgindex(pkgfile) if not d: @@ -686,6 +687,8 @@ class PackageIndex(object): continue d.setdefault("EAPI", "0") d.setdefault("SLOT", "0") + if header_chost: + d.setdefault("CHOST", header_chost) self.packages[mycpv] = d def write(self, pkgfile): -- 2.26.2