subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1146228 - /subversion/trunk/tools/dist/release.py
Date Wed, 13 Jul 2011 19:00:16 GMT
Author: hwright
Date: Wed Jul 13 19:00:15 2011
New Revision: 1146228

URL: http://svn.apache.org/viewvc?rev=1146228&view=rev
Log:
release.py: String-ify the Version objects for use by ezt.  (I would have
thought that ezt would have done this for us, but apparently not.)

* tools/dist/release.py
  (post_candidates, write_announcement): Manually stringify a Version object.

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1146228&r1=1146227&r2=1146228&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Wed Jul 13 19:00:15 2011
@@ -425,7 +425,7 @@ def post_candidates(args):
         target = args.target
     else:
         target = os.path.join(os.getenv('HOME'), 'public_html', 'svn',
-                              args.version)
+                              str(args.version))
 
     if args.code_name:
         dirname = args.code_name
@@ -435,7 +435,7 @@ def post_candidates(args):
     if not os.path.exists(target):
         os.makedirs(target)
 
-    data = { 'version'      : args.version,
+    data = { 'version'      : str(args.version),
              'revnum'       : args.revnum,
              'dirname'      : dirname,
            }
@@ -532,7 +532,7 @@ def write_announcement(args):
     'Write the release announcement.'
     sha1info = get_sha1info(args)
 
-    data = { 'version'              : args.version,
+    data = { 'version'              : str(args.version),
              'sha1info'             : sha1info,
              'siginfo'              : open('getsigs-output', 'r').read(),
              'major-minor'          : args.version.base[:3],



Mime
View raw message