From fcface673eac5564269ee38f6d04b60d847c460e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Sun, 15 Jun 2014 12:30:03 +0200 Subject: [PATCH] Fix crash in 'fdroid import' --- fdroidserver/import.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdroidserver/import.py b/fdroidserver/import.py index c8b3bbdb..e055dd70 100644 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@ -294,6 +294,12 @@ def main(): build['subdir'] = options.subdir if os.path.exists(os.path.join(root_dir, 'jni')): build['buildjni'] = ['yes'] + + for flag, value in metadata.flag_defaults.iteritems(): + if flag in build: + continue + build[flag] = value + app['builds'].append(build) # Keep the repo directory to save bandwidth...