diff options
-rw-r--r-- | man/emerge.1 | 2 | ||||
-rw-r--r-- | pym/_emerge/help.py | 2 | ||||
-rw-r--r-- | pym/_emerge/main.py | 13 |
3 files changed, 14 insertions, 3 deletions
diff --git a/man/emerge.1 b/man/emerge.1 index 178198810..0e1d29b0a 100644 --- a/man/emerge.1 +++ b/man/emerge.1 @@ -343,7 +343,7 @@ Specifies the number of packages to build simultaneously. If this option is given without an argument, emerge will not limit the number of jobs that can run simultaneously. Also see the related \fB\-\-load\-average\fR option. .TP -.BR "\-\-keep\-going" +.BR "\-\-keep\-going[=n]" Continue as much as possible after an error. When an error occurs, dependencies are recalculated for remaining packages and any with unsatisfied dependencies are automatically dropped. Also see diff --git a/pym/_emerge/help.py b/pym/_emerge/help.py index cbd1fe491..18e4369b6 100644 --- a/pym/_emerge/help.py +++ b/pym/_emerge/help.py @@ -360,7 +360,7 @@ def help(myopts, havecolor=1): for line in wrap(desc, desc_width): print desc_indent + line print - print " "+green("--keep-going") + print " " + green("--keep-going") + "[=%s]" % turquoise("n") desc = "Continue as much as possible after " + \ "an error. When an error occurs, " + \ "dependencies are recalculated for " + \ diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index c5a16ff42..9115a25d6 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -45,7 +45,6 @@ options=[ "--emptytree", "--fetchonly", "--fetch-all-uri", "--ignore-default-opts", -"--keep-going", "--noconfmem", "--newuse", "--nodeps", "--noreplace", @@ -376,6 +375,7 @@ def insert_optional_args(args): '--getbinpkg' : ('n',), '--getbinpkgonly' : ('n',), '--jobs' : valid_integers, + '--keep-going' : ('n',), '--root-deps' : ('rdeps',), '--selective' : ('n',), '--usepkg' : ('n',), @@ -533,6 +533,12 @@ def parse_opts(tmpcmdline, silent=False): "action" : "store" }, + "--keep-going": { + "help" : "continue as much as possible after an error", + "type" : "choice", + "choices" : ("True", "n") + }, + "--load-average": { "help" :"Specifies that no new builds should be started " + \ @@ -661,6 +667,11 @@ def parse_opts(tmpcmdline, silent=False): else: myoptions.getbinpkgonly = None + if myoptions.keep_going in ("True",): + myoptions.keep_going = True + else: + myoptions.keep_going = None + if myoptions.root_deps == "True": myoptions.root_deps = True |