summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/main.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/main.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/main.py')
-rw-r--r--pym/_emerge/main.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
index d2fc0ac5f..f4ea36c7b 100644
--- a/pym/_emerge/main.py
+++ b/pym/_emerge/main.py
@@ -968,10 +968,11 @@ def parse_opts(tmpcmdline, silent=False):
if myoptions.deselect in true_y:
myoptions.deselect = True
- if myoptions.binpkg_respect_use in true_y:
- myoptions.binpkg_respect_use = True
- else:
- myoptions.binpkg_respect_use = None
+ if myoptions.binpkg_respect_use is not None:
+ if myoptions.binpkg_respect_use in true_y:
+ myoptions.binpkg_respect_use = 'y'
+ else:
+ myoptions.binpkg_respect_use = 'n'
if myoptions.complete_graph in true_y:
myoptions.complete_graph = True