[anaconda][master][PATCH] Short-circuit initialization when printing out Anaconda version
Brian C. Lane
bcl at redhat.com
Thu May 22 20:54:55 UTC 2014
On Thu, May 22, 2014 at 10:22:32PM +0200, Martin Kolman wrote:
> We already short-circuit the initialization when printing out
> the help and we should also short-circuit when printing
> the Anaconda version information.
>
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
> anaconda | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/anaconda b/anaconda
> index 7499bc3..a77c426 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -747,7 +747,7 @@ def cleanPStore():
> if __name__ == "__main__":
> # check if the CLI help is requested and return it at once,
> # without importing random stuff and spamming stdout
> - if ("--help" in sys.argv) or ("-h" in sys.argv):
> + if ("--help" in sys.argv) or ("-h" in sys.argv) or ("--version" in sys.argv):
> parseArguments()
>
> print("Starting installer, one moment...")
> --
> 1.9.0
Ack
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list