chiark / gitweb /
Don't crash if no suitable NDK is found
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 4 Jan 2015 00:45:52 +0000 (01:45 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 4 Jan 2015 00:45:52 +0000 (01:45 +0100)
fdroidserver/build.py

index af8d2ae653b1c52930d36c61e2cdc922c63d88dc..f4083237287bb34c3de2e52aa58336d9e9189719 100644 (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']
+        common.env[n] = thisbuild['ndk_path'] or ''
 
     # Prepare the source code...
     root_dir, srclibpaths = common.prepare_source(vcs, app, thisbuild,