From 9a42ed950344f038e775af6c7f54547c10a60678 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sun, 18 Jul 2021 17:14:18 +0800 Subject: [PATCH] alpm: make sure we get the repo config --- nvchecker_source/alpm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvchecker_source/alpm.py b/nvchecker_source/alpm.py index 8c9a46f..c40ea6d 100644 --- a/nvchecker_source/alpm.py +++ b/nvchecker_source/alpm.py @@ -9,13 +9,13 @@ async def open_db(info): dbpath, repo = info handle = Handle('/', dbpath) db = handle.register_syncdb(repo, 0) - return (handle, db) + return handle, db async def get_version(name, conf, *, cache, **kwargs): pkgname = conf.get('alpm', name) dbpath = conf.get('dbpath', '/var/lib/pacman') - repo = conf.get('repo') + repo = conf['repo'] strip_release = conf.get('strip_release', False) provided = conf.get('provided') db = (await cache.get((dbpath, repo), open_db))[1]