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

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

 



From: "Brian C. Lane" <bcl@xxxxxxxxxx>

---
 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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux