mirror of
https://github.com/lilydjwg/nvchecker
synced 2025-02-17 11:07:27 +00:00
pacman: fix two issues
* Correct cache key * Return only one version when a package is available in two or more repos (e.g., stable and testing)
This commit is contained in:
parent
1cb902d691
commit
3546821471
@ -3,11 +3,11 @@
|
||||
|
||||
from . import cmd, conf_cacheable_with_name
|
||||
|
||||
get_cacheable_conf = conf_cacheable_with_name('debianpkg')
|
||||
get_cacheable_conf = conf_cacheable_with_name('pacman')
|
||||
|
||||
async def get_version(name, conf, **kwargs):
|
||||
referree = conf.get('pacman') or name
|
||||
c = "LANG=C pacman -Si %s | grep -F Version | awk '{print $3}'" % referree
|
||||
c = "LANG=C pacman -Si %s | grep -F Version | awk '{print $3}' | head -n 1" % referree
|
||||
conf['cmd'] = c
|
||||
strip_release = conf.getboolean('strip-release', False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user