mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-01-26 00:08:25 -05:00
common: don't crash if an sdk binary is not found
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user