From c4d14ce86af18a3bdd9e32ff12260df681becb3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 26 Jan 2014 21:28:09 +0100 Subject: [PATCH] Don't always require ndk_path --- fdroidserver/common.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index d0319cfa..30a53bc5 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1018,9 +1018,10 @@ def prepare_source(vcs, app, build, build_dir, srclib_dir, extlib_dir, onserver= else: props += "sdk.dir=%s\n" % config['sdk_path'] props += "sdk-location=%s\n" % ['sdk_path'] - # Add ndk location... - props += "ndk.dir=%s\n" % config['ndk_path'] - props += "ndk-location=%s\n" % config['ndk_path'] + if 'ndk_path' in config: + # Add ndk location... + props += "ndk.dir=%s\n" % config['ndk_path'] + props += "ndk-location=%s\n" % config['ndk_path'] # Add java.encoding if necessary... if 'encoding' in build: props += "java.encoding=%s\n" % build['encoding']