diff options
author | Lars Amsel <lars.amsel@ni.com> | 2021-04-19 13:12:28 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-03 09:34:20 -0500 |
commit | 51fda6367773893547b76a3f4a1bafeaf6d094c7 (patch) | |
tree | 93afbae2b17b6feeba8511e12c64e18ce0f3f503 /mpm/python/usrp_mpm | |
parent | 1f001f2c292b794c42e1ec7a663cfe75e7851f3a (diff) | |
download | uhd-51fda6367773893547b76a3f4a1bafeaf6d094c7.tar.gz uhd-51fda6367773893547b76a3f4a1bafeaf6d094c7.tar.bz2 uhd-51fda6367773893547b76a3f4a1bafeaf6d094c7.zip |
mpm: Fix MD5 hashing of opkg status
Diffstat (limited to 'mpm/python/usrp_mpm')
-rw-r--r-- | mpm/python/usrp_mpm/sys_utils/filesystem_status.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpm/python/usrp_mpm/sys_utils/filesystem_status.py b/mpm/python/usrp_mpm/sys_utils/filesystem_status.py index 3b7655a66..0a788d8b8 100644 --- a/mpm/python/usrp_mpm/sys_utils/filesystem_status.py +++ b/mpm/python/usrp_mpm/sys_utils/filesystem_status.py @@ -57,4 +57,4 @@ def get_opkg_status_md5sum(filesystem_root='/'): file = pathlib.Path(filesystem_root, 'var/lib/opkg/status') if not file.exists(): return None - return hashlib.md5sum(file.read_text()).hexdigest() + return hashlib.md5(file.read_bytes()).hexdigest() |