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

 
 
LinkBack Thread Tools
 
Old 01-27-2011, 03:03 PM
Chris Lumens
 
Default Add anaconda --version support (#673150).

---
anaconda | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index fd00c8c..3f74832 100755
--- a/anaconda
+++ b/anaconda
@@ -164,7 +164,11 @@ def symlink_updates(dest_dir, update_dir):
os.symlink(dest_path, update_path)

def parseOptions(argv = None):
- op = OptionParser()
+ # Using _isys here so we don't drag in the logging stuff, which is always
+ # complicated.
+ from pyanaconda import _isys
+ op = OptionParser(version="%prog " + _isys.getAnacondaVersion())
+
# Interface
op.add_option("-C", "--cmdline", dest="display_mode", action="store_const", const="c",
default="g")
--
1.7.1.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-27-2011, 05:49 PM
David Cantrell
 
Default Add anaconda --version support (#673150).

On Thu, 27 Jan 2011, Chris Lumens wrote:


---
anaconda | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/anaconda b/anaconda
index fd00c8c..3f74832 100755
--- a/anaconda
+++ b/anaconda
@@ -164,7 +164,11 @@ def symlink_updates(dest_dir, update_dir):
os.symlink(dest_path, update_path)

def parseOptions(argv = None):
- op = OptionParser()
+ # Using _isys here so we don't drag in the logging stuff, which is always
+ # complicated.
+ from pyanaconda import _isys
+ op = OptionParser(version="%prog " + _isys.getAnacondaVersion())
+
# Interface
op.add_option("-C", "--cmdline", dest="display_mode", action="store_const", const="c",
default="g")



Ack.

--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

_______________________________________________
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 06:51 AM.

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