chiark / gitweb /
'ndk_path' will always be in the config
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 25 Sep 2014 16:13:16 +0000 (18:13 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 25 Sep 2014 16:13:16 +0000 (18:13 +0200)
fdroidserver/common.py

index d77ae57d155b7f247b6cde8d19b76aec758a1d15..8d7d32b37010d5b574184c1ad101b2d057d18b9b 100644 (file)
@@ -1206,7 +1206,7 @@ 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" % config['sdk_path']
-        if 'ndk_path' in config:
+        if config['ndk_path']:
             # Add ndk location
             props += "ndk.dir=%s\n" % config['ndk_path']
             props += "ndk-location=%s\n" % config['ndk_path']