From e93cdab002a9df30cfeddd54ef036582f59af318 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 30 Nov 2011 12:05:26 +0100 Subject: [PATCH 1/1] winfreed.py: some TODO comments --- winfreed.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/winfreed.py b/winfreed.py index 16fb1c7..4b4f6bb 100755 --- a/winfreed.py +++ b/winfreed.py @@ -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 -- 2.1.4