From 7d2d3caee2f492a754ec331077e4bbb2929abcf2 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 7 Oct 2022 21:28:50 +0800 Subject: [PATCH] filter message caused by stdbuf preload --- src/pacroller/checker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pacroller/checker.py b/src/pacroller/checker.py index 5215b27..1296ff6 100644 --- a/src/pacroller/checker.py +++ b/src/pacroller/checker.py @@ -227,6 +227,9 @@ def _log_parser(log: List[str], report: checkReport) -> None: line = log[ln] (_, source, msg) = _split_log_line(line) if source == 'ALPM-SCRIPTLET': + if msg == r"ERROR: ld.so: object '/usr/lib/coreutils/libstdbuf.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.": + logger.debug(f'hook output ignored {hook_name=} {msg=}') + continue for r in (*(KNOWN_HOOK_OUTPUT.get('', [])), *(KNOWN_HOOK_OUTPUT.get(hook_name, []))): if match(r, msg): logger.debug(f'hook output match {hook_name=} {msg=} {r=}')