diff options
author | Joel Challis <git@zvecr.com> | 2023-01-09 09:27:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-09 09:27:41 +0000 |
commit | b57714f793058cfef3e10c0bbdc9ffb02b20c5a7 (patch) | |
tree | 396c771954a055753e497234f74cde6139a2dbba /lib/python/qmk/cli/doctor/main.py | |
parent | a3ed1b0c8d51b0a11eb358d06041d4edb1dba6be (diff) |
`qmk doctor` - Handle timeouts while checking binaries (#19549)
Diffstat (limited to 'lib/python/qmk/cli/doctor/main.py')
-rwxr-xr-x | lib/python/qmk/cli/doctor/main.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/doctor/main.py b/lib/python/qmk/cli/doctor/main.py index d55a11e5fd..6a6feb87d1 100755 --- a/lib/python/qmk/cli/doctor/main.py +++ b/lib/python/qmk/cli/doctor/main.py @@ -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 |