diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-05-16 16:27:15 +0200 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-02-17 22:49:07 +0200 |
commit | db020b34c3907a9022e6f302fa2d5fe76429dade (patch) | |
tree | 13b239cc9b724a55f1dce2b3497732fb8ac5f1a8 /web | |
parent | Dependencies: bulk fetch, delete and insert (diff) | |
download | soko-db020b34c3907a9022e6f302fa2d5fe76429dade.tar.gz soko-db020b34c3907a9022e6f302fa2d5fe76429dade.tar.bz2 soko-db020b34c3907a9022e6f302fa2d5fe76429dade.zip |
Link to repology by Gentoo package coordinates
Some 'Repology' links on p.g.o point to "unkown projects". For example
on https://packages.gentoo.org/packages/games-simulation/EmptyEpsilon
the 'Repology' link points to
https://repology.org/project/EmptyEpsilon, however the Repology name
is emptyepsilon.
The Repology developer thankfully pointed me to
https://repology.org/tools/project-by?repo=gentoo&name_type=srcname&target_page=project_versions,
which allows us to link from p.g.o using the Gentoo package
coordinates. This has two advantages
1) It is robust and functional in the case described above
2) It supports packages with the same name (but different categories)
Hence, this changes the 'Repology' link to use Gentoo package
coordinates.
Closes: https://bugs.gentoo.org/845009
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Closes: https://github.com/gentoo/soko/pull/6
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/packages/resources.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/templates/packages/resources.tmpl b/web/templates/packages/resources.tmpl index 784a691..cd4b4a3 100644 --- a/web/templates/packages/resources.tmpl +++ b/web/templates/packages/resources.tmpl @@ -21,7 +21,7 @@ </dd> <dd> <span class="fa fa-fw fa-sort-numeric-desc"></span> - <a href="https://repology.org/project/{{.Package.Name}}" target="_blank"> + <a href="https://repology.org/tools/project-by?repo=gentoo&name_type=srcname&target_page=project_versions&name={{.Package.Category}}/{{.Package.Name}}" target="_blank"> Repology </a> </dd> |