You are not logged in.

#1 2021-03-06 10:57:02

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Template for {{AUR|pkg}} broken if target is a split package [SOLVED]

The {{AUR|pkg}} template seems broken for split packages. 
Lahwaacz.bot, recently crawled the Kodi page and uncovered this bug.

As an example, try clicking "kodi-matrix-git" from this link.

It will send your browser to a "404 - Page Not Found" at this url:

https://aur.archlinux.org/packages/kodi-matrix-git/

When searching on that same name in the AUR web interface, the following is what gives the correct hit:

https://aur.archlinux.org/packages/?O=0&K=kodi-matrix-git

Last edited by graysky (2021-03-06 13:49:07)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2021-03-06 11:06:56

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: Template for {{AUR|pkg}} broken if target is a split package [SOLVED]

Offline

#3 2021-03-06 11:16:41

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Template for {{AUR|pkg}} broken if target is a split package [SOLVED]

What is the recommendation?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2021-03-06 13:34:36

lahwaacz
Wiki Admin
From: Czech Republic
Registered: 2012-05-29
Posts: 748

Re: Template for {{AUR|pkg}} broken if target is a split package [SOLVED]

The AUR and Pkg templates expect a valid "pkgname", they don't work for a "pkgbase" which is different from all "pkgname"s of the split package.

The correct link for a "pkgbase" on AUR is this: https://aur.archlinux.org/pkgbase/kodi-matrix-git/

Handling archweb links properly is more complicated since it uses the "/packages/" path for both pkgname and pkgbase, so we can't know which case it is just by looking at the URL.

Last edited by lahwaacz (2021-03-06 13:36:22)

Offline

#5 2021-03-06 13:48:49

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: Template for {{AUR|pkg}} broken if target is a split package [SOLVED]

OK, I will just use kodi-matrix-git-common as the target.  Also wanted to be sure the bug was known.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB