summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-13 23:00:16 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-13 23:00:16 -0700
commitc138e8e2654ad9350eec2a433991b882b4c6b058 (patch)
treef235e65b71efa7a2c2634ff7041a34104541f794
parentRefactor FEATURES=test USE logic. (diff)
downloadportage-c138e8e2654ad9350eec2a433991b882b4c6b058.tar.gz
portage-c138e8e2654ad9350eec2a433991b882b4c6b058.tar.bz2
portage-c138e8e2654ad9350eec2a433991b882b4c6b058.zip
dep_check: cleanup repoman use.force/mask code
-rw-r--r--pym/portage/dep/dep_check.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/pym/portage/dep/dep_check.py b/pym/portage/dep/dep_check.py
index ecb8a9b4e..6d1969e17 100644
--- a/pym/portage/dep/dep_check.py
+++ b/pym/portage/dep/dep_check.py
@@ -564,18 +564,15 @@ def dep_check(depstring, mydbapi, mysettings, use="yes", mode=None, myuse=None,
mymasks = set()
useforce = set()
- useforce.add(mysettings["ARCH"])
if use == "all":
- # This masking/forcing is only for repoman. In other cases, relevant
- # masking/forcing should have already been applied via
- # config.regenerate(). Also, binary or installed packages may have
- # been built with flags that are now masked, and it would be
- # inconsistent to mask them now. Additionally, myuse may consist of
- # flags from a parent package that is being merged to a $ROOT that is
- # different from the one that mysettings represents.
+ # This is only for repoman, in order to constrain the use_reduce
+ # matchall behavior to account for profile use.mask/force. The
+ # ARCH/archlist code here may be redundant, since the profile
+ # really should be handling ARCH masking/forcing itself.
mymasks.update(mysettings.usemask)
mymasks.update(mysettings.archlist())
mymasks.discard(mysettings["ARCH"])
+ useforce.add(mysettings["ARCH"])
useforce.update(mysettings.useforce)
useforce.difference_update(mymasks)