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

Re: [PATCH] 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


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