mirror of
https://github.com/isjerryxiao/pacroller.git
synced 2024-11-22 15:50:43 +08:00
suppress warning from pycman
This commit is contained in:
parent
bbdcf094dc
commit
57e96c2650
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class alpmCallback:
|
||||||
def upgrade() -> List[str]:
|
def upgrade() -> List[str]:
|
||||||
logger.info('upgrade start')
|
logger.info('upgrade start')
|
||||||
handle = pycman.config.init_with_config(PACMAN_CONFIG)
|
handle = pycman.config.init_with_config(PACMAN_CONFIG)
|
||||||
|
pycman.config.cb_log = lambda *_: None
|
||||||
localdb = handle.get_localdb()
|
localdb = handle.get_localdb()
|
||||||
alpmCallback().setup_hdl(handle)
|
alpmCallback().setup_hdl(handle)
|
||||||
t = handle.init_transaction()
|
t = handle.init_transaction()
|
||||||
|
|
Loading…
Reference in a new issue