From 51fda6367773893547b76a3f4a1bafeaf6d094c7 Mon Sep 17 00:00:00 2001 From: Lars Amsel Date: Mon, 19 Apr 2021 13:12:28 +0200 Subject: mpm: Fix MD5 hashing of opkg status --- mpm/python/usrp_mpm/sys_utils/filesystem_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mpm/python') 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() -- cgit v1.2.3