summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/create_depgraph_params.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-21 20:03:03 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-21 20:03:03 -0700
commitc85965f6d0493bab84d6b7a615d39678df9d53ba (patch)
tree4be58dc6c27df65159b02cfba9ec45d91d8b9ac6 /pym/_emerge/create_depgraph_params.py
parent339b0ac7f3b1f5e82b427a3cde6c021c406d5b71 (diff)
downloadportage-c85965f6d0493bab84d6b7a615d39678df9d53ba.tar.gz
portage-c85965f6d0493bab84d6b7a615d39678df9d53ba.tar.bz2
portage-c85965f6d0493bab84d6b7a615d39678df9d53ba.zip
Tweak automatic --binpkg-respect-use behavior.
If --binpkg-respect-use is not explicitly specified, we enable the behavior automatically (like requested in bug #297549), as long as it doesn't strongly conflict with other options that have been specified. Strongly conflicting options currently include --usepkgonly and --rebuilt-binaries.
Diffstat (limited to 'pym/_emerge/create_depgraph_params.py')
-rw-r--r--pym/_emerge/create_depgraph_params.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_depgraph_params.py
index 221c440ef..d94ad89b3 100644
--- a/pym/_emerge/create_depgraph_params.py
+++ b/pym/_emerge/create_depgraph_params.py
@@ -64,6 +64,17 @@ def create_depgraph_params(myopts, myaction):
'--update' in myopts:
myparams['rebuilt_binaries'] = True
+ binpkg_respect_use = myopts.get('--binpkg-respect-use')
+ if binpkg_respect_use is not None:
+ myparams['binpkg_respect_use'] = binpkg_respect_use
+ elif '--usepkgonly' not in myopts and \
+ myopts.get('--rebuilt-binaries') is not True:
+ # If --binpkg-respect-use is not explicitly specified, we enable
+ # the behavior automatically (like requested in bug #297549), as
+ # long as it doesn't strongly conflict with other options that
+ # have been specified.
+ myparams['binpkg_respect_use'] = 'auto'
+
if myopts.get("--selective") == "n":
# --selective=n can be used to remove selective
# behavior that may have been implied by some