1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

common: don't crash if an sdk binary is not found

This commit is contained in:
Daniel Martí 2015-10-24 17:02:53 +02:00
parent 0fa6aac288
commit 91daacb889

View File

@ -1581,7 +1581,11 @@ def SdkToolsPopen(commands, cwd=None, output=True):
cmd = commands[0]
if cmd not in config:
config[cmd] = find_sdk_tools_cmd(commands[0])
return FDroidPopen([config[cmd]] + commands[1:],
abscmd = config[cmd]
if abscmd is None:
logging.critical("Could not find '%s' on your system" % cmd)
sys.exit(1)
return FDroidPopen(abscmd + commands[1:],
cwd=cwd, output=output)