From 189ff9cd7bdbd56be86ce9c23c252477775af5fa Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 26 Apr 2022 10:25:04 +0200 Subject: [PATCH] build: improve error message when NDK SHA-256 does not match --- fdroidserver/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 403bb74d..3c4eeb2d 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -4341,8 +4341,9 @@ def _install_ndk(ndk): os.path.basename(url) ) net.download_file(url, zipball) - if sha256 != sha256sum(zipball): - raise FDroidException('SHA-256 %s does not match expected for %s' % (sha256, url)) + calced = sha256sum(zipball) + if sha256 != calced: + raise FDroidException('SHA-256 %s does not match expected for %s (%s)' % (calced, url, sha256)) logging.info(_('Unzipping to %s') % ndk_base) with zipfile.ZipFile(zipball) as zipfp: for info in zipfp.infolist():