mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 07:22:29 +03:00
build: improve error message when NDK SHA-256 does not match
This commit is contained in:
parent
e678df14ce
commit
189ff9cd7b
1 changed files with 3 additions and 2 deletions
|
@ -4341,8 +4341,9 @@ def _install_ndk(ndk):
|
||||||
os.path.basename(url)
|
os.path.basename(url)
|
||||||
)
|
)
|
||||||
net.download_file(url, zipball)
|
net.download_file(url, zipball)
|
||||||
if sha256 != sha256sum(zipball):
|
calced = sha256sum(zipball)
|
||||||
raise FDroidException('SHA-256 %s does not match expected for %s' % (sha256, url))
|
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)
|
logging.info(_('Unzipping to %s') % ndk_base)
|
||||||
with zipfile.ZipFile(zipball) as zipfp:
|
with zipfile.ZipFile(zipball) as zipfp:
|
||||||
for info in zipfp.infolist():
|
for info in zipfp.infolist():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue