1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

find_sdk_tools_cmd returns non if aapt is not found

This commit is contained in:
Jochen Sprickerhof 2020-11-26 22:52:52 +01:00
parent 393f88b41e
commit 66414a9fc7

View File

@ -715,10 +715,9 @@ class CommonTest(unittest.TestCase):
fdroidserver.common.fill_config_defaults(config)
fdroidserver.common.config = config
self._set_build_tools()
try:
aapt = fdroidserver.common.find_sdk_tools_cmd('aapt')
if aapt:
config['aapt'] = fdroidserver.common.find_sdk_tools_cmd('aapt')
except fdroidserver.exception.FDroidException:
pass # aapt is not required if androguard is present
testcases = [
('repo/obb.main.twoversions_1101613.apk', 'obb.main.twoversions', '1101613', '0.1'),