[Checkins] SVN: zope.z2release/trunk/zope/z2release/cli.py removed hard-coded Zope 2 version

Andreas Jung andreas at andreas-jung.com
Fri Apr 24 05:08:06 EDT 2009


Log message for revision 99459:
  removed hard-coded Zope 2 version
  

Changed:
  U   zope.z2release/trunk/zope/z2release/cli.py

-=-
Modified: zope.z2release/trunk/zope/z2release/cli.py
===================================================================
--- zope.z2release/trunk/zope/z2release/cli.py	2009-04-24 09:01:18 UTC (rev 99458)
+++ zope.z2release/trunk/zope/z2release/cli.py	2009-04-24 09:08:06 UTC (rev 99459)
@@ -57,6 +57,8 @@
     tag = sys.argv[1]
     dirname = sys.argv[2]
 
+    version = tag.split('/')[-1]
+
     versions_url = 'http://svn.zope.org/*checkout*/Zope/%s/versions.cfg' % tag
     print >>sys.stderr, 'Fetching %s' % versions_url
     data = urllib.urlopen(versions_url).read()
@@ -69,7 +71,7 @@
     server = Server('http://pypi.python.org/pypi')
     links = list()
 
-    write_index('Zope2', '2.12.0a3', dirname)
+    write_index('Zope2', version, dirname)
     for package in CP.options('versions'):
 
         # options() returns all options in lowercase but



More information about the Checkins mailing list