projects
/
winfreed.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
97e4c14
)
winfreed.py: some TODO comments
author
Antonio Ospite <ospite@studenti.unina.it>
Wed, 30 Nov 2011 11:05:26 +0000
(12:05 +0100)
committer
Antonio Ospite <ospite@studenti.unina.it>
Wed, 30 Nov 2011 11:05:26 +0000
(12:05 +0100)
winfreed.py
patch
|
blob
|
history
diff --git
a/winfreed.py
b/winfreed.py
index
16fb1c7
..
4b4f6bb
100755
(executable)
--- 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
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):
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
sys.stderr.write("Warning (%s): %s exists!\n" % (pkg['package_name'], destfile))
return