From 9804ecde3f8e49a240b53fbeb9c4231c9ddddaf2 Mon Sep 17 00:00:00 2001 From: Yufan You Date: Sat, 5 Feb 2022 17:02:33 +0800 Subject: [PATCH] [AUR] Fix RPC URL Before this fix, the AUR badges were showing "not found". See https://github.com/Jguer/yay/issues/1684 --- services/aur/aur.service.js | 2 +- services/aur/aur.tester.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/services/aur/aur.service.js b/services/aur/aur.service.js index 61430f5b68f15..618f08ede3cb4 100644 --- a/services/aur/aur.service.js +++ b/services/aur/aur.service.js @@ -42,7 +42,7 @@ class BaseAurService extends BaseJsonService { // https://wiki.archlinux.org/index.php/Aurweb_RPC_interface return this._requestJson({ schema: aurSchema, - url: 'https://aur.archlinux.org/rpc.php', + url: 'https://aur.archlinux.org/rpc', options: { searchParams: { v: 5, type: 'info', arg: packageName } }, }) } diff --git a/services/aur/aur.tester.js b/services/aur/aur.tester.js index 37ad9c5a7e6a8..2fc2c4c86d6d9 100644 --- a/services/aur/aur.tester.js +++ b/services/aur/aur.tester.js @@ -45,7 +45,7 @@ t.create('license (no license)') .get('/license/vscodium-bin.json') .intercept(nock => nock('https://aur.archlinux.org') - .get('/rpc.php') + .get('/rpc') .query({ v: 5, type: 'info',