From 5cad435a0b94231563af95ff4fa161e32cf98ea7 Mon Sep 17 00:00:00 2001 From: Brian Murray Date: Tue, 25 Jun 2024 15:23:49 -0700 Subject: [PATCH] autopkgtest.py: use decode not str I was on holiday too long? --- britney2/policies/autopkgtest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index a1c3434..87df958 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -185,9 +185,9 @@ class AutopkgtestPolicy(BasePolicy): break local_db_sha.update(data) f_out.write(data) - if http_code and local_db_sha.hexdigest() != str(chksum): + if http_code and local_db_sha.hexdigest() != chksum.decode(): self.logger.info("autopkgtest.db local chksum is %s" % local_db_sha.hexdigest()) - self.logger.info("autopkgtest.db downloaded chksum is %s" % str(chksum)) + self.logger.info("autopkgtest.db downloaded chksum is %s" % chksum.decode()) self.logger.info("autopkgtest.db local checksum does not match downloaded checksum!") os.unlink(new_file) else: