URLPath returned by RPC isn't correct for split packages
Checklist
This bug template is meant to provide bug issues for code existing in the aurweb repository. This bug template is not meant to handle bugs with user-uploaded packages.
To work out a bug you have found in a user-uploaded package, contact the package's maintainer first. If you receive no response, file the relevant package request against it so TUs can deal with cleanup.
-
I confirm that this is an issue with aurweb's code and not a user-uploaded package. -
I have described the bug in complete detail in the Description section. -
I have specified steps in the Reproduction section. -
I have included any logs related to the bug in the Logs section. -
I have included the versions which are affected in the Version(s) section.
Description
I'm trying to use the RPC interface provided by aurweb to get the git repository of packages by name. The URLPath is correct for normal packages, but for split packages like czkawka
(which is split in czkawka-gui
and czkawka-cli
), it returns the wrong path. I assume the correct URL would be the one provided on the AUR page (the URL of the snapshot button on the right side). In the Python code for the RPC interface (aurweb/rpc.py:141
), it just adds the name of the package to the base snapshot URL (/cgit/aur.git/snapshot/%s.tar.gz in conf/config.defaults:35
), which doesn't produce the correct URL for the split package. Another example is the package gtk-update-icon-cache-git
, which is a part of the gtk4-git
package, but also doesn't have the correct URLPath returned by the RPC interface, as it just uses the name of the package itself.
Reproduction
Example for czkawka
:
- Run
curl 'https://aur.archlinux.org/rpc?v=5&type=multiinfo&arg[]=czkawka-gui' | jq
- Compare the returned URLPath with the one on the AUR when hovering over the snapshot button on the page of
czkawka-gui
.
Logs
/
Version(s)
v6.0.28