Fix package "shasum" validation on Mac OS X 10.11.2 // Resolve #429

This commit is contained in:
Ivan Kravets
2016-01-03 17:45:49 +02:00
parent 4d2daa9da4
commit fdff35e31c
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -88,12 +88,12 @@ class FileDownloader(object):
try:
result = util.exec_command(["sha1sum", self._destination])
dlsha1 = result['out']
except OSError:
except (OSError, ValueError):
try:
result = util.exec_command(
["shasum", "-a", "1", self._destination])
dlsha1 = result['out']
except OSError:
except (OSError, ValueError):
pass
if dlsha1: