From 57e96c265096edf7dd56b82d73278fd061fbcf39 Mon Sep 17 00:00:00 2001 From: Jerry Date: Fri, 15 Jan 2021 23:41:08 +0800 Subject: [PATCH] suppress warning from pycman --- src/pacroller/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pacroller/main.py b/src/pacroller/main.py index 3f0c34e..b9c0f7c 100644 --- a/src/pacroller/main.py +++ b/src/pacroller/main.py @@ -69,6 +69,7 @@ class alpmCallback: def upgrade() -> List[str]: logger.info('upgrade start') handle = pycman.config.init_with_config(PACMAN_CONFIG) + pycman.config.cb_log = lambda *_: None localdb = handle.get_localdb() alpmCallback().setup_hdl(handle) t = handle.init_transaction()