aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-08-04 15:08:43 -0700
committerZac Medico <zmedico@gentoo.org>2013-08-04 15:08:43 -0700
commit85f53097ed9fad43b713ac9c13f6beff43da760e (patch)
treed1194b76f53eb136b8daef276a8fac24ddaf0104 /pym/portage/dbapi/bintree.py
parentAdd repoman check for deprecated ruby targets, fixes bug #469616 (diff)
downloadportage-85f53097ed9fad43b713ac9c13f6beff43da760e.tar.gz
portage-85f53097ed9fad43b713ac9c13f6beff43da760e.tar.bz2
portage-85f53097ed9fad43b713ac9c13f6beff43da760e.zip
Include implicit IUSE vars in binhost Packages.v2.2.0_alpha194
These values may be useful for using a binhost without having a local copy of the profile (bug #470006).
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 7e30208a3..61ac6b54c 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -317,7 +317,9 @@ class binarytree(object):
"ACCEPT_KEYWORDS", "ACCEPT_LICENSE",
"ACCEPT_PROPERTIES", "ACCEPT_RESTRICT", "CBUILD",
"CONFIG_PROTECT", "CONFIG_PROTECT_MASK", "FEATURES",
- "GENTOO_MIRRORS", "INSTALL_MASK", "USE"])
+ "GENTOO_MIRRORS", "INSTALL_MASK", "IUSE_IMPLICIT", "USE",
+ "USE_EXPAND", "USE_EXPAND_HIDDEN", "USE_EXPAND_IMPLICIT",
+ "USE_EXPAND_UNPREFIXED"])
self._pkgindex_default_pkg_data = {
"BUILD_TIME" : "",
"DEFINED_PHASES" : "",
@@ -1259,6 +1261,16 @@ class binarytree(object):
else:
header.pop(k, None)
+ # These values may be useful for using a binhost without
+ # having a local copy of the profile (bug #470006).
+ for k in self.settings.get("USE_EXPAND_IMPLICIT", "").split():
+ k = "USE_EXPAND_VALUES_" + k
+ v = self.settings.get(k)
+ if v:
+ header[k] = v
+ else:
+ header.pop(k, None)
+
def _pkgindex_version_supported(self, pkgindex):
version = pkgindex.header.get("VERSION")
if version: