mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
[aur]: update to AUR API version 5
This commit is contained in:
parent
7209189753
commit
316dcd18be
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ import logging
|
|||
from tornado.httpclient import AsyncHTTPClient
|
||||
from tornado.escape import url_escape
|
||||
|
||||
AUR_URL = 'https://aur.archlinux.org/rpc.php?type=info&arg='
|
||||
AUR_URL = 'https://aur.archlinux.org/rpc/?v=5&type=info&arg[]='
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
@ -27,7 +27,7 @@ def _aur_done(name, strip_release, callback, res):
|
|||
callback(name, None)
|
||||
return
|
||||
|
||||
version = data['results']['Version']
|
||||
version = data['results'][0]['Version']
|
||||
if strip_release and '-' in version:
|
||||
version = version.rsplit('-', 1)[0]
|
||||
callback(name, version)
|
||||
|
|
Loading…
Add table
Reference in a new issue