build: auto-download missing NDKS if they're known and can be verified

refs #517 #717
This commit is contained in:
Hans-Christoph Steiner 2021-05-12 11:28:25 +02:00
parent 7a7ecbf9dc
commit 69fcd6a024
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
3 changed files with 378 additions and 11 deletions

View file

@ -367,7 +367,10 @@ def build_local(app, build, vcs, build_dir, output_dir, log_dir, srclib_dir, ext
if k.endswith("_orig"):
continue
logging.critical(" %s: %s" % (k, v))
raise FDroidException()
if onserver:
common.auto_install_ndk(build)
else:
raise FDroidException()
elif not os.path.isdir(ndk_path):
logging.critical("Android NDK '%s' is not a directory!" % ndk_path)
raise FDroidException()