Log message for revision 99389:
  f*ck - added exception for externally hosted packaged
  like docutils *SIGH*
  

Changed:
  U   Zope/trunk/inst/generate_index.py

-=-
Modified: Zope/trunk/inst/generate_index.py
===================================================================
--- Zope/trunk/inst/generate_index.py   2009-04-22 17:10:14 UTC (rev 99388)
+++ Zope/trunk/inst/generate_index.py   2009-04-22 17:17:15 UTC (rev 99389)
@@ -22,7 +22,10 @@
 
     fp = file(index_html, 'w')
     print >>fp, '<html><body>'
-    for d in server.package_urls(package, version):
+    lst = server.package_urls(package, version)
+    if not lst:
+        raise RuntimeError('Package contains no release files: %s==%s' % 
(package, version))
+    for d in lst:
         link = '<a href="%s">%s</a>' % (d['url'], d['filename'])
         print >>fp, link
         print >>fp, '<br/>'

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to