Re: [PATCH] Add anaconda --version support (#673150).

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

 



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@xxxxxxxxxx>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Honolulu, HI | UTC-10

_______________________________________________
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