[jhbuild] autotools: hashlib.md5 requires bytes with py3



commit 0a4ead12bac6fd0ef0146cc6db15a1d97d44b372
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]