From: Antonio Ospite Date: Wed, 30 Nov 2011 11:05:26 +0000 (+0100) Subject: winfreed.py: some TODO comments X-Git-Url: https://git.ao2.it/winfreed.git/commitdiff_plain/e93cdab002a9df30cfeddd54ef036582f59af318?hp=97e4c14a8fef9931a848e330284ada86e7607637 winfreed.py: some TODO comments --- 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