[Zope-Checkins] SVN: Zope/trunk/inst/generate_index.py f*ck - added exception for externally hosted packaged
Andreas Jung
andreas at andreas-jung.com
Wed Apr 22 13:17:16 EDT 2009
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/>'
More information about the Zope-Checkins
mailing list