qmk doctor
- Handle timeouts while checking binaries (#19549)
This commit is contained in:
@ -119,13 +119,15 @@ def doctor(cli):
|
||||
# Make sure the basic CLI tools we need are available and can be executed.
|
||||
bin_ok = check_binaries()
|
||||
|
||||
if not bin_ok:
|
||||
if bin_ok == CheckStatus.ERROR:
|
||||
if yesno('Would you like to install dependencies?', default=True):
|
||||
cli.run(['util/qmk_install.sh', '-y'], stdin=DEVNULL, capture_output=False)
|
||||
bin_ok = check_binaries()
|
||||
|
||||
if bin_ok:
|
||||
if bin_ok == CheckStatus.OK:
|
||||
cli.log.info('All dependencies are installed.')
|
||||
elif bin_ok == CheckStatus.WARNING:
|
||||
cli.log.warning('Issues encountered while checking dependencies.')
|
||||
else:
|
||||
status = CheckStatus.ERROR
|
||||
|
||||
|
Reference in New Issue
Block a user