diff --git a/contrib/make_download b/contrib/make_download index c56aa5c2..0839ea80 100755 --- a/contrib/make_download +++ b/contrib/make_download @@ -28,13 +28,21 @@ for k, n in files.items(): link = "https://download.electrum.org/%s"%n if not os.path.exists(path): os.system("wget -q %s -O %s" % (link, path)) - if os.path.getsize(path): - md5 = hashlib.md5(file(path,'r').read()).digest().encode('hex') - string = string.replace("##link_%s##"%k, link) - string = string.replace("##md5_%s##"%k, md5) - else: + if not os.path.getsize(path): os.unlink(path) string = re.sub("