aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorband-a-prend <torokhov-s-a@yandex.ru>2020-11-06 23:24:34 +0300
committerMax Magorsch <arzano@gentoo.org>2020-11-08 12:54:56 +0100
commit7a91111193d62652fe4f6e30dd2384f8326bfc5a (patch)
tree6c8e45e82ac97c09b1413e462a40526f81b903f8
parentAdd prometheus metrics (diff)
downloadsoko-7a91111193d62652fe4f6e30dd2384f8326bfc5a.tar.gz
soko-7a91111193d62652fe4f6e30dd2384f8326bfc5a.tar.bz2
soko-7a91111193d62652fe4f6e30dd2384f8326bfc5a.zip
Add case "heptapod" item into func RemoteIdLink()
After discussion on gentoo-dev mailing list [1] new remote-id item "heptapod" was added to 'dtd/metadata.dtd' and to 'xml-schema/metadata.xsd'. This patch adds the remote-id item "heptapod" to RemoteIdLink() to provide Remote-ID URLs to packages project pages that are hosted on https://foss.heptapod.net/ [1] https://archives.gentoo.org/gentoo-dev/message/d12a0ebb34a4c87fc9964b6631b19611 Signed-off-by: band-a-prend <torokhov-s-a@yandex.ru> Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rw-r--r--pkg/app/handler/packages/utils.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/app/handler/packages/utils.go b/pkg/app/handler/packages/utils.go
index 3a17352..ccc03c3 100644
--- a/pkg/app/handler/packages/utils.go
+++ b/pkg/app/handler/packages/utils.go
@@ -391,6 +391,8 @@ func RemoteIdLink(remoteId models.RemoteId) string {
return "http://freshmeat.sourceforge.net/projects/" + remoteId.Id
case "gitlab":
return "https://gitlab.com/" + remoteId.Id
+ case "heptapod":
+ return "https://foss.heptapod.net/" + remoteId.Id
default:
return ""
}