#941969 whohas displays wrong information for diffoscope on Archlinux

#941969#5
Date:
2019-10-08 09:02:05 UTC
From:
To:
Dear Maintainer,

$ whohas diffoscope
[...]
AUR         		<td>103-1</td>                       3 		http://aur.archlinux.org		<td>103-1</td>
[...]

while https://www.archlinux.org/packages/community/x86_64/diffoscope/
shows that Archlinux (proper, not AUR) has version 125-1.
-------------------------------------------------------------------------------
               holger@(debian|reproducible-builds|layer-acht).org
       PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C

#941969#10
Date:
2019-10-08 09:24:51 UTC
From:
To:
hi,

so, what I learned:

- diffoscope-git is a git package which is some kind of YOLO arch
  package, which updates itself to the latest git version on
  installation. (so the version number is meaningless.)
- so ${pkg}-git should probably be ignored if the is a ${pkg} package
  too.
- https://wiki.archlinux.org/index.php/Official_repositories_web_interface
  is what the name implies.
------------------------------------------------------------------------------- holger@(debian|reproducible-builds|layer-acht).org PGP fingerprint: B8BF 5413 7B09 D35C F026 FE9D 091A B856 069A AA1C
#941969#15
Date:
2019-10-08 19:04:07 UTC
From:
To:
In order to get information about a package, you add "json/" to the link.

So, https://www.archlinux.org/packages/community/x86_64/diffoscope/
becomes https://www.archlinux.org/packages/community/x86_64/diffoscope/json/

Since this hardcodes architecture and repository information, you could
do a search and get json instead.

Given this exact-name search:

https://www.archlinux.org/packages/?name=diffoscope

You can get json like this:

https://www.archlinux.org/packages/search/json/?name=diffoscope

You should generally only get one search result due to the exact-name
search, but if the package is in both the "community" repository and the
"community-testing" repository, you could end up with two results, the
-testing version being newer.

You could either try to check that by hand, or add the search terms

&repo=Core&repo=Extra&repo=Community&repo=Multilib

to hardcode which repos you want to search in.