FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 12-21-2011, 12:51 AM
"Brian C. Lane"
 
Default 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

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

Thread Tools




All times are GMT. The time now is 07:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org