diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-06 22:02:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-06 22:02:10 +0000 |
commit | 6ec11e597af7a1c938f7e95cec80be0f3e74be17 (patch) | |
tree | 8a30d6c8b9750ed88759867a47fb36048704f4a5 | |
parent | 7ff6705dabeb4d6d2f8af4b1be09adc9fec3d0e5 (diff) | |
download | portage-6ec11e597af7a1c938f7e95cec80be0f3e74be17.tar.gz portage-6ec11e597af7a1c938f7e95cec80be0f3e74be17.tar.bz2 portage-6ec11e597af7a1c938f7e95cec80be0f3e74be17.zip |
In PackageIndex.readBody(), make each package entry
inherit CHOST from the header.
svn path=/main/trunk/; revision=7987
-rw-r--r-- | pym/portage/getbinpkg.py | 3 |
1 files changed, 3 insertions, 0 deletions
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): |