diff options
author | Sebastian Luther <SebastianLuther@gmx.de> | 2011-09-19 13:45:35 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-19 07:10:04 -0700 |
commit | 7e956a6ec65b9b48a9fca3e928e7c7b56fd066b6 (patch) | |
tree | ff64f9b2ec6e2feb1883d309d59f4dc818ce0011 /pym/_emerge/main.py | |
parent | 343418c4cbd1c0dbf65583adeab618db09efea6c (diff) | |
download | portage-7e956a6ec65b9b48a9fca3e928e7c7b56fd066b6.tar.gz portage-7e956a6ec65b9b48a9fca3e928e7c7b56fd066b6.tar.bz2 portage-7e956a6ec65b9b48a9fca3e928e7c7b56fd066b6.zip |
autounmask: Add --autounmask-unrestricted-atoms option
The default behavior of --autounmask is now changed back to
the original one, namely to use '=' operators. The
--autounmask-unrestricted-atoms option allows the use of '>='
operators whenever possible. This addresses the issues raised
in bugs 372405, 374331 and 379333.
Diffstat (limited to 'pym/_emerge/main.py')
-rw-r--r-- | pym/_emerge/main.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index b6b63e2fd..73d07953e 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -431,6 +431,7 @@ def insert_optional_args(args): default_arg_opts = { '--ask' : y_or_n, '--autounmask' : y_or_n, + '--autounmask-unrestricted-atoms' : y_or_n, '--autounmask-write' : y_or_n, '--buildpkg' : y_or_n, '--complete-graph' : y_or_n, @@ -603,6 +604,12 @@ def parse_opts(tmpcmdline, silent=False): "choices" : true_y_or_n }, + "--autounmask-unrestricted-atoms": { + "help" : "write autounmask changes with >= atoms if possible", + "type" : "choice", + "choices" : true_y_or_n + }, + "--autounmask-write": { "help" : "write changes made by --autounmask to disk", "type" : "choice", @@ -926,6 +933,9 @@ def parse_opts(tmpcmdline, silent=False): if myoptions.autounmask in true_y: myoptions.autounmask = True + if myoptions.autounmask_unrestricted_atoms in true_y: + myoptions.autounmask_unrestricted_atoms = True + if myoptions.autounmask_write in true_y: myoptions.autounmask_write = True |