Raise exception if the given NDK was not found

Seen in

https://monitor.f-droid.org/builds/log/io.nekohasekai.sagernet/635#site-footer
This commit is contained in:
Jochen Sprickerhof 2021-12-01 07:45:03 +01:00
parent 60cf72a462
commit 2933880590

View file

@ -4302,6 +4302,8 @@ def _install_ndk(ndk):
url = ndkdict['url'] url = ndkdict['url']
sha256 = ndkdict['sha256'] sha256 = ndkdict['sha256']
break break
else:
raise FDroidException("NDK %s not found" % ndk)
ndk_base = os.path.join(config['sdk_path'], 'ndk') ndk_base = os.path.join(config['sdk_path'], 'ndk')
logging.info(_('Downloading %s') % url) logging.info(_('Downloading %s') % url)
zipball = os.path.join( zipball = os.path.join(