mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 10:34:49 +00:00
Fix spelling issue.
This commit is contained in:
1 parent
c6a0741379
commit
a6eaa2bebc
1 file changed
+1
-1
+1
-1
@@ -46,12 +46,12 @@ def download_file(url, target, md5=None):
|
|||||||
if not os.path.isfile(target):
|
if not os.path.isfile(target):
|
||||||
try:
|
try:
|
||||||
urllib.urlretrieve(url, target)
|
urllib.urlretrieve(url, target)
|
||||||
print 'Downladed %s' % name
|
|
||||||
if not md5 == None:
|
if not md5 == None:
|
||||||
if not get_md5(target) == md5:
|
if not get_md5(target) == md5:
|
||||||
print 'Download of %s failed md5 check, deleting' % name
|
print 'Download of %s failed md5 check, deleting' % name
|
||||||
os.remove(target)
|
os.remove(target)
|
||||||
return False
|
return False
|
||||||
|
print 'Downloaded %s successfully' % name
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print e
|
print e
|
||||||
print 'Download of %s failed, download it manually from \'%s\' to \'%s\'' % (target, url, target)
|
print 'Download of %s failed, download it manually from \'%s\' to \'%s\'' % (target, url, target)
|
||||||
|
|||||||
Reference in new issue
Block a user