From c85965f6d0493bab84d6b7a615d39678df9d53ba Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 21 Sep 2011 20:03:03 -0700 Subject: 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. --- pym/_emerge/main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pym/_emerge/main.py') 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 -- cgit v1.2.3-1-g7c22