From 87cf03b56d7a07659153e4c412e008fcbdb10948 Mon Sep 17 00:00:00 2001 From: Jerry Date: Mon, 11 Oct 2021 15:50:50 +0800 Subject: [PATCH] change no match msg --- src/pacroller/checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pacroller/checker.py b/src/pacroller/checker.py index 45b323f..94e255a 100644 --- a/src/pacroller/checker.py +++ b/src/pacroller/checker.py @@ -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=}')