svn path=/main/branches/2.1.1/; revision=4538
return 0
del distlocks_subdir
for myfile in filedict.keys():
+ """
+ fetched status
+ 0 nonexistent
+ 1 partially downloaded
+ 2 completely downloaded
+ """
myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
fetched=0
file_lock = None
try:
os.unlink(mysettings["DISTDIR"]+"/"+myfile)
writemsg(">>> Deleting invalid distfile. (Improper 404 redirect from server.)\n")
+ fetched = 0
+ continue
except SystemExit, e:
raise
except:
raise
except:
pass
+ fetched = 1
continue
if not fetchonly:
fetched=2