Fix spelling issue.

This commit is contained in:
LexManos 2012-11-08 21:01:31 -08:00
parent 4e2f04c48a
commit 5355348181

View file

@ -46,12 +46,12 @@ def download_file(url, target, md5=None):
if not os.path.isfile(target):
try:
urllib.urlretrieve(url, target)
print 'Downladed %s' % name
if not md5 == None:
if not get_md5(target) == md5:
print 'Download of %s failed md5 check, deleting' % name
os.remove(target)
return False
print 'Downloaded %s successfully' % name
except Exception as e:
print e
print 'Download of %s failed, download it manually from \'%s\' to \'%s\'' % (target, url, target)