chiark / gitweb /
Don't always require ndk_path
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 26 Jan 2014 20:28:09 +0000 (21:28 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 26 Jan 2014 20:28:09 +0000 (21:28 +0100)
fdroidserver/common.py

index d0319cfa0218da08d9f376c862434c3da1f1610e..30a53bc50d2cfd0f646c3947f05c6b02bd5ecb33 100644 (file)
@@ -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']