mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
Merge pull request #218 from moodyhunter/master
alpm source: support checking packages from multiple repos
This commit is contained in:
commit
a1d2a1325c
2 changed files with 5 additions and 2 deletions
|
@ -860,7 +860,10 @@ alpm
|
|||
Name of the package.
|
||||
|
||||
repo
|
||||
Name of the package repository in which the package resides. If not provided, nvchecker will search ``core``, ``extra``, ``community`` and ``multilib``, in that order.
|
||||
Name of the package repository in which the package resides. If not provided, nvchecker will use ``repos`` value, see below.
|
||||
|
||||
repos
|
||||
An array of possible repositories in which the package may reside in, nvchecker will use the first repository which contains the package. If not provided, ``core``, ``extra``, ``community`` and ``multilib`` will be used, in that order.
|
||||
|
||||
dbpath
|
||||
Path to the ALPM database directory. Default: ``/var/lib/pacman``. You need to update the database yourself.
|
||||
|
|
|
@ -20,7 +20,7 @@ async def get_version(name, conf, *, cache, **kwargs):
|
|||
|
||||
repo = conf.get('repo')
|
||||
if repo is None:
|
||||
repos = ['core', 'extra', 'community', 'multilib']
|
||||
repos = conf.get('repos') or ['core', 'extra', 'community', 'multilib']
|
||||
else:
|
||||
repos = [repo]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue