[svn] commit: r2948 - /trunk/src/bin/bind10/bind10.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Sep 16 19:33:28 UTC 2010


Author: jreed
Date: Thu Sep 16 19:33:27 2010
New Revision: 2948

Log:
Update the version. Remove the "v" prefix.
Now the VERSION string consists of the module name, the module version
number, and the overall BIND 10 version number (set in configure.ac).

This is for Trac ticket #302 with further discussion on jabber
a couple days ago.

I plan to do similar for other modules but only completed two others
because beyond that some were missing feature or were broken
for attempting to see the version. (I will report separately.)

No changelog entry. This is minor.

Modified:
    trunk/src/bin/bind10/bind10.py.in

Modified: trunk/src/bin/bind10/bind10.py.in
==============================================================================
--- trunk/src/bin/bind10/bind10.py.in (original)
+++ trunk/src/bin/bind10/bind10.py.in Thu Sep 16 19:33:27 2010
@@ -65,7 +65,9 @@
 import isc.cc
 
 # This is the version that gets displayed to the user.
-__version__ = "v20100531"
+# The VERSION string consists of the module name, the module version
+# number, and the overall BIND 10 version number (set in configure.ac).
+VERSION = "bind10 20100916 (BIND 10 @PACKAGE_VERSION@)"
 
 class RestartSchedule:
     """
@@ -627,7 +629,7 @@
 
 
     # Parse any command-line options.
-    parser = OptionParser(version=__version__)
+    parser = OptionParser(version=VERSION)
     parser.add_option("-a", "--address", dest="address", type="string",
                       action="callback", callback=check_addr, default='',
                       help="address the b10-auth daemon will use (default: listen on all addresses)")
@@ -680,7 +682,7 @@
 
     # Announce startup.
     if options.verbose:
-        sys.stdout.write("BIND 10 %s\n" % __version__)
+        sys.stdout.write("%s\n" % VERSION)
 
     # TODO: set process name, perhaps by:
     #       http://code.google.com/p/procname/




More information about the bind10-changes mailing list