sys.stderr.write("Debug (%s): filename: %s url: %s\n" % (pkg['package_name'], filename, url))
return
+ # TODO: Add some integrity verification of downloaded files (md5, sha256?)
+
destfile = os.path.join(OUTPUT_DIR, filename)
if os.path.exists(destfile):
+ # TODO: check if the file is a full download from previous run,
+ # if not download again discarding the existing file?
sys.stderr.write("Warning (%s): %s exists!\n" % (pkg['package_name'], destfile))
return