suppress warning from pycman

This commit is contained in:
JerryXiao 2021-01-15 23:41:08 +08:00
parent bbdcf094dc
commit 57e96c2650
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -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()