From 0434b7d47a8bfe002effe5afb21d242231273c06 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 20 Dec 2011 17:48:59 -0800 Subject: [PATCH] lorax: add --config option --- src/sbin/lorax | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sbin/lorax b/src/sbin/lorax index 3096fa5d..f2c6d0a5 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -63,6 +63,8 @@ def main(args): default="your distribution provided bug reporting tool") optional.add_option("--isbeta", help="", action="store_true", default=False, dest="is_beta") + optional.add_option("-c", "--config", default="/etc/lorax/lorax.conf", + help="config file", metavar="STRING") # add the option groups to the parser parser.add_option_group(required) @@ -108,7 +110,7 @@ def main(args): # run lorax lorax = pylorax.Lorax() - lorax.configure() + lorax.configure(conf_file=opts.config) lorax.run(yb, opts.product, opts.version, opts.release, opts.variant, opts.bugurl, opts.is_beta, workdir=tempdir, outputdir=outputdir)