From 847bbb6e43805513e6df77241b6c00fb2715f222 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 22 Feb 2018 12:10:53 +0100 Subject: [PATCH] init: do not try to find aapt if androguard is available --- fdroidserver/init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fdroidserver/init.py b/fdroidserver/init.py index 7b59bdb7..b47d65b6 100644 --- a/fdroidserver/init.py +++ b/fdroidserver/init.py @@ -131,7 +131,9 @@ def main(): logging.info('Try running `fdroid init` in an empty directory.') raise FDroidException('Repository already exists.') - if 'aapt' not in test_config or not os.path.isfile(test_config['aapt']): + if common.use_androguard(): + pass + elif 'aapt' not in test_config or not os.path.isfile(test_config['aapt']): # try to find a working aapt, in all the recent possible paths build_tools = os.path.join(test_config['sdk_path'], 'build-tools') aaptdirs = []