diff options
Diffstat (limited to 'bitbake/lib/bb/utils.py')
-rw-r--r-- | bitbake/lib/bb/utils.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py index 66a8a08c21..bca4830f22 100644 --- a/bitbake/lib/bb/utils.py +++ b/bitbake/lib/bb/utils.py | |||
@@ -545,7 +545,12 @@ def md5_file(filename): | |||
545 | Return the hex string representation of the MD5 checksum of filename. | 545 | Return the hex string representation of the MD5 checksum of filename. |
546 | """ | 546 | """ |
547 | import hashlib | 547 | import hashlib |
548 | return _hasher(hashlib.new('MD5', usedforsecurity=False), filename) | 548 | try: |
549 | sig = hashlib.new('MD5', usedforsecurity=False) | ||
550 | except TypeError: | ||
551 | # Some configurations don't appear to support two arguments | ||
552 | sig = hashlib.new('MD5') | ||
553 | return _hasher(sig, filename) | ||
549 | 554 | ||
550 | def sha256_file(filename): | 555 | def sha256_file(filename): |
551 | """ | 556 | """ |