[Checkins] SVN: zope.z2release/trunk/ Do not override existing version pins defined in the ``versions.cfg`` by versions from the extends lines. This refs https://bugs.launchpad.net/zope2/+bug/623428.

Hanno Schlichting hannosch at hannosch.eu
Thu Sep 9 08:04:05 EDT 2010


Log message for revision 116250:
  Do not override existing version pins defined in the ``versions.cfg`` by versions from the extends lines. This refs https://bugs.launchpad.net/zope2/+bug/623428.
  

Changed:
  U   zope.z2release/trunk/CHANGES.txt
  U   zope.z2release/trunk/zope/z2release/utils.py

-=-
Modified: zope.z2release/trunk/CHANGES.txt
===================================================================
--- zope.z2release/trunk/CHANGES.txt	2010-09-09 11:40:28 UTC (rev 116249)
+++ zope.z2release/trunk/CHANGES.txt	2010-09-09 12:04:05 UTC (rev 116250)
@@ -4,6 +4,9 @@
 0.8 - unreleased
 ----------------
 
+- Do not override existing version pins defined in the ``versions.cfg`` by
+  versions from the extends lines. This refs
+  https://bugs.launchpad.net/zope2/+bug/623428.
 
 0.7 - 2010-07-13
 ----------------

Modified: zope.z2release/trunk/zope/z2release/utils.py
===================================================================
--- zope.z2release/trunk/zope/z2release/utils.py	2010-09-09 11:40:28 UTC (rev 116249)
+++ zope.z2release/trunk/zope/z2release/utils.py	2010-09-09 12:04:05 UTC (rev 116250)
@@ -19,8 +19,11 @@
 
     print >>sys.stderr, 'Package %s==%s' % (package, version)
     dest_dir = os.path.join(dirname, package)
-    if not os.path.exists(dest_dir):
-        os.makedirs(dest_dir)
+    if os.path.exists(dest_dir):
+        print >>sys.stderr, "Don't override package %s==%s" % (package, version)
+        return
+
+    os.makedirs(dest_dir)
     index_html = os.path.join(dest_dir, 'index.html')
 
     fp = file(index_html, 'w')



More information about the checkins mailing list