mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
alpm: make sure we get the repo config
This commit is contained in:
parent
606b3f65fb
commit
9a42ed9503
1 changed files with 2 additions and 2 deletions
|
@ -9,13 +9,13 @@ async def open_db(info):
|
||||||
dbpath, repo = info
|
dbpath, repo = info
|
||||||
handle = Handle('/', dbpath)
|
handle = Handle('/', dbpath)
|
||||||
db = handle.register_syncdb(repo, 0)
|
db = handle.register_syncdb(repo, 0)
|
||||||
return (handle, db)
|
return handle, db
|
||||||
|
|
||||||
|
|
||||||
async def get_version(name, conf, *, cache, **kwargs):
|
async def get_version(name, conf, *, cache, **kwargs):
|
||||||
pkgname = conf.get('alpm', name)
|
pkgname = conf.get('alpm', name)
|
||||||
dbpath = conf.get('dbpath', '/var/lib/pacman')
|
dbpath = conf.get('dbpath', '/var/lib/pacman')
|
||||||
repo = conf.get('repo')
|
repo = conf['repo']
|
||||||
strip_release = conf.get('strip_release', False)
|
strip_release = conf.get('strip_release', False)
|
||||||
provided = conf.get('provided')
|
provided = conf.get('provided')
|
||||||
db = (await cache.get((dbpath, repo), open_db))[1]
|
db = (await cache.get((dbpath, repo), open_db))[1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue