winfreed.py: some TODO comments
authorAntonio Ospite <ospite@studenti.unina.it>
Wed, 30 Nov 2011 11:05:26 +0000 (12:05 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Wed, 30 Nov 2011 11:05:26 +0000 (12:05 +0100)
winfreed.py

index 16fb1c7..4b4f6bb 100755 (executable)
@@ -90,8 +90,12 @@ def download(pkg):
         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