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

[PATCH master f15-branch] Log running version number as soon as possible



---
 anaconda |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index f9d9048..6119d6d 100755
--- a/anaconda
+++ b/anaconda
@@ -147,11 +147,14 @@ def symlink_updates(dest_dir, update_dir):
                 continue
             os.symlink(dest_path, update_path)
 
-def parseOptions(argv = None):
+def getAnacondaVersion():
     # 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())
+    return _isys.getAnacondaVersion()
+
+def parseOptions(argv = None):
+    op = OptionParser(version="%prog " + getAnacondaVersion())
 
     # Interface
     op.add_option("-C", "--cmdline", dest="display_mode", action="store_const", const="c",
@@ -694,6 +697,8 @@ if __name__ == "__main__":
         stdoutLog.error("anaconda must be run as root.")
         sys.exit(0)
 
+    log.info("%s %s" % (sys.argv[0], getAnacondaVersion()))
+
     # pull this in to get product name and versioning
     from pyanaconda import product
 
-- 
1.7.4


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