From: Zac Medico Date: Fri, 6 Oct 2006 00:54:49 +0000 (-0000) Subject: For bug #150178, print an error message when emerge is called with both --config... X-Git-Tag: v2.1.2~705 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad62bd2619d60753a669bd8cd1581fb9da35d535;p=portage.git For bug #150178, print an error message when emerge is called with both --config and --pretend. svn path=/main/trunk/; revision=4600 --- diff --git a/bin/emerge b/bin/emerge index d2d3e768e..6192ca36c 100755 --- a/bin/emerge +++ b/bin/emerge @@ -4126,6 +4126,10 @@ def emerge_main(): action_regen(settings, portdb) # HELP action elif "config"==myaction: + if "--pretend" in myopts: + sys.stderr.write("emerge: The --config action " + \ + "does not support --pretend.\n") + return 1 validate_ebuild_environment(trees) action_config(settings, trees, myopts, myfiles) @@ -4161,4 +4165,5 @@ def emerge_main(): post_emerge(settings, mtimedb, 0) if __name__ == "__main__": - emerge_main() + retval = emerge_main() + sys.exit(retval)