aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-09-22 08:44:48 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-22 08:44:48 -0700
commit1ed746be090390bd698810081f30164094ea402d (patch)
tree2255420f2f6e81013555c44da9d2b3f382283f8a /pym/_emerge/create_depgraph_params.py
parentTweak automatic --binpkg-respect-use behavior. (diff)
downloadportage-1ed746be090390bd698810081f30164094ea402d.tar.gz
portage-1ed746be090390bd698810081f30164094ea402d.tar.bz2
portage-1ed746be090390bd698810081f30164094ea402d.zip
Tweak auto --binpkg-respect-use more.
We don't want to check for --rebuilt-binaries here, unless --usepkg is also enabled. In fact, we can skip the --rebuilt-binaries check since people who really want to ensure that binary packages are used as much as possible will typically specify --usepkgonly (or --getbinpkgonly which implies --usepkgonly).
Diffstat (limited to 'pym/_emerge/create_depgraph_params.py')
-rw-r--r--pym/_emerge/create_depgraph_params.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/_emerge/create_depgraph_params.py b/pym/_emerge/create_depgraph_params.py
index d94ad89b3..42983fef3 100644
--- a/pym/_emerge/create_depgraph_params.py
+++ b/pym/_emerge/create_depgraph_params.py
@@ -67,8 +67,7 @@ def create_depgraph_params(myopts, myaction):
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:
+ elif '--usepkgonly' not in myopts:
# 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