1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Never let build['ndk_path'] be None

This commit is contained in:
Daniel Martí 2015-01-04 20:41:22 +01:00
parent e9be413d3c
commit 3645471a1c
2 changed files with 3 additions and 3 deletions

View File

@ -466,7 +466,7 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
# Set up environment vars that depend on each build
for n in ['ANDROID_NDK', 'NDK']:
common.env[n] = thisbuild['ndk_path'] or ''
common.env[n] = thisbuild['ndk_path']
# Prepare the source code...
root_dir, srclibpaths = common.prepare_source(vcs, app, thisbuild,

View File

@ -188,8 +188,8 @@ def get_ndk_path(version):
version = 'r10d' # latest
paths = config['ndk_paths']
if version not in paths:
return None
return paths[version]
return ''
return paths[version] or ''
def find_sdk_tools_cmd(cmd):