If download fails to connect, it'll make a zero size file. Then the next
run on ./makebuildserver will fail because the checksum will not be right.
for f, src, shasum in cachefiles:
relpath = os.path.join(cachedir, f)
+ # if download fails to connect, it'll make a zero size file
+ if os.path.exists(relpath) and os.stat(relpath).st_size == 0:
+ os.remove(relpath)
if not os.path.exists(relpath):
print "Downloading " + f + " to cache"
if subprocess.call(['wget', src, '-O', f], cwd=cachedir) != 0: