lorax: add --config option
This commit is contained in:
parent
d3a9e77315
commit
0434b7d47a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user