mirror of
https://github.com/munki/munki.git
synced 2026-05-01 01:39:21 -05:00
sha256
This commit is contained in:
@@ -133,7 +133,7 @@ def makecatalogs(repopath, options):
|
||||
# Try to read the icon file
|
||||
try:
|
||||
print_utf8("Hashing %s..." % (iconpath))
|
||||
iconhash = hashlib.md5(open(filepath, 'rb').read()).hexdigest()
|
||||
iconhash = hashlib.sha256(open(filepath, 'rb').read()).hexdigest()
|
||||
icons.update({iconpath:iconhash})
|
||||
except IOError, inst:
|
||||
errors.append("IO error for %s: %s" % (filepath, inst))
|
||||
|
||||
Reference in New Issue
Block a user