change no match msg

This commit is contained in:
JerryXiao 2021-10-11 15:50:50 +08:00
parent ef7198ec78
commit 87cf03b56d
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5

View file

@ -238,7 +238,7 @@ def _log_parser(log: List[str], report: checkReport) -> None:
ln -= 1
break
else:
report.crit(f'[NOM] {msg}')
report.crit(f'[NOM-ALPM] {msg}')
elif source == 'ALPM-SCRIPTLET':
(_, _, _pmsg) = _split_log_line(log[ln-1])
if _m := REGEX['l_upgrade'].match(_pmsg):
@ -248,7 +248,7 @@ def _log_parser(log: List[str], report: checkReport) -> None:
elif _m := REGEX['l_remove'].match(_pmsg):
pkg, *_ = _m.groups()
else:
report.crit(f'{line=} has unknown SCRIPTLET output')
report.crit(f'[NOM-SCRIPTLET] {_pmsg}')
ln += 1
continue
logger.debug(f'.install start {pkg=}')