mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
common: don't crash if an sdk binary is not found
This commit is contained in:
parent
0fa6aac288
commit
91daacb889
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue