filter message caused by stdbuf preload

This commit is contained in:
JerryXiao 2022-10-07 21:28:50 +08:00
parent 2fdb21e2cc
commit 7d2d3caee2
Signed by: Jerry
GPG key ID: 22618F758B5BE2E5

View file

@ -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=}')