mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-22 15:50:43 +08:00
change no match msg
This commit is contained in:
parent
ef7198ec78
commit
87cf03b56d
1 changed files with 2 additions and 2 deletions
|
@ -238,7 +238,7 @@ def _log_parser(log: List[str], report: checkReport) -> None:
|
||||||
ln -= 1
|
ln -= 1
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
report.crit(f'[NOM] {msg}')
|
report.crit(f'[NOM-ALPM] {msg}')
|
||||||
elif source == 'ALPM-SCRIPTLET':
|
elif source == 'ALPM-SCRIPTLET':
|
||||||
(_, _, _pmsg) = _split_log_line(log[ln-1])
|
(_, _, _pmsg) = _split_log_line(log[ln-1])
|
||||||
if _m := REGEX['l_upgrade'].match(_pmsg):
|
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):
|
elif _m := REGEX['l_remove'].match(_pmsg):
|
||||||
pkg, *_ = _m.groups()
|
pkg, *_ = _m.groups()
|
||||||
else:
|
else:
|
||||||
report.crit(f'{line=} has unknown SCRIPTLET output')
|
report.crit(f'[NOM-SCRIPTLET] {_pmsg}')
|
||||||
ln += 1
|
ln += 1
|
||||||
continue
|
continue
|
||||||
logger.debug(f'.install start {pkg=}')
|
logger.debug(f'.install start {pkg=}')
|
||||||
|
|
Loading…
Reference in a new issue