[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 1/3] lorax: add --config option



From: "Brian C. Lane" <bcl redhat com>

---
 src/sbin/lorax |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/sbin/lorax b/src/sbin/lorax
index 3096fa5..f2c6d0a 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)
-- 
1.7.6.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]