[jhbuild/more-cleanup: 4/5] autotools: hashlib.md5 requires bytes with py3
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild/more-cleanup: 4/5] autotools: hashlib.md5 requires bytes with py3
- Date: Sun, 22 Sep 2019 20:57:24 +0000 (UTC)
commit 8b12361611dd660d3549920f6e45e9d7c0109a97
Author: Christoph Reiter <reiter christoph gmail com>
Date: Sun Sep 22 22:52:02 2019 +0200
autotools: hashlib.md5 requires bytes with py3
jhbuild/modtypes/autotools.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/jhbuild/modtypes/autotools.py b/jhbuild/modtypes/autotools.py
index fd5625b6..476433d5 100644
--- a/jhbuild/modtypes/autotools.py
+++ b/jhbuild/modtypes/autotools.py
@@ -185,7 +185,7 @@ class AutogenModule(MakeModule, DownloadableModule):
configure_hash = db_entry.metadata.get('configure-hash')
if configure_hash:
configure_cmd = self._get_configure_cmd(buildscript)
- if hashlib.md5(configure_cmd).hexdigest() != configure_hash:
+ if hashlib.md5(configure_cmd.encode("utf-8")).hexdigest() != configure_hash:
return False
else:
# force one-time reconfigure if no configure-hash
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]