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:
parent
0fa6aac288
commit
91daacb889
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user