Commit 4f29cfee authored by Andreas Jung's avatar Andreas Jung

f*ck - added exception for externally hosted packaged

like docutils *SIGH*
parent c2e8b18b
......@@ -22,7 +22,10 @@ def write_index(package, version):
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/>'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment