[KiBot Checker] Fixed problems to detect iBoM version

- For the unpatched version you install from the PCM
This commit is contained in:
Salvador E. Tropea 2022-08-12 13:38:23 -03:00
parent 91185ca56a
commit b8c4fadf07
3 changed files with 7 additions and 2 deletions

View File

@ -32,6 +32,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Datasheet download: Time-outs on some servers expecting modern browsers (#240)
- SCH Print and Netlist: name collisions. When the default name used by KiCad
belongs to an already existing file. (#244)
- Install checker: fixed problems to detect iBoM installed as plugin. (#209)
### Changed
- The order in which main sections are parsed is now fixed.

View File

@ -773,7 +773,7 @@ def check_tool_binary_local(name):
return full_name
def run_command(cmd, only_first_line=True, pre_ver_text=None, no_err_2=False):
def run_command(cmd, only_first_line=False, pre_ver_text=None, no_err_2=False):
global last_ok
cmd_full = which(cmd[0])
if not cmd_full:
@ -1095,6 +1095,7 @@ for name, d in dependencies.items():
version = NOT_AVAIL
sev, ver = check_version(version, d['roles'])
d['sev'] = sev
version = version.split('\n')[0]
print(name+': '+do_color(version, sev, version=ver))
print(do_bright('\nTools:'))
@ -1115,6 +1116,7 @@ for name, d in dependencies.items():
version = run_command(cmd, no_err_2=d['no_cmd_line_version_old'])
sev, ver = check_version(version, d['roles'])
d['sev'] = sev
version = version.split('\n')[0]
print(name+': '+do_color(version, sev, version=ver))
# ######################################################################################################################

View File

@ -54,7 +54,7 @@ def check_tool_binary_local(name):
return full_name
def run_command(cmd, only_first_line=True, pre_ver_text=None, no_err_2=False):
def run_command(cmd, only_first_line=False, pre_ver_text=None, no_err_2=False):
global last_ok
cmd_full = which(cmd[0])
if not cmd_full:
@ -376,6 +376,7 @@ for name, d in dependencies.items():
version = NOT_AVAIL
sev, ver = check_version(version, d['roles'])
d['sev'] = sev
version = version.split('\n')[0]
print(name+': '+do_color(version, sev, version=ver))
print(do_bright('\nTools:'))
@ -396,6 +397,7 @@ for name, d in dependencies.items():
version = run_command(cmd, no_err_2=d['no_cmd_line_version_old'])
sev, ver = check_version(version, d['roles'])
d['sev'] = sev
version = version.split('\n')[0]
print(name+': '+do_color(version, sev, version=ver))
# ######################################################################################################################