From cdb088cec288a20e14240f86a689dd14f4cd603b Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Mon, 22 May 2023 04:57:49 +0200 Subject: Add CRAN package registry (#22331) This PR adds a [CRAN](https://cran.r-project.org/) package registry. ![grafik](https://user-images.githubusercontent.com/1666336/210450039-d6fa6f77-20cd-4741-89a8-1624def267f7.png) --- models/packages/package.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'models/packages/package.go') diff --git a/models/packages/package.go b/models/packages/package.go index 2dfed78046..380a076f9d 100644 --- a/models/packages/package.go +++ b/models/packages/package.go @@ -37,6 +37,7 @@ const ( TypeConan Type = "conan" TypeConda Type = "conda" TypeContainer Type = "container" + TypeCran Type = "cran" TypeDebian Type = "debian" TypeGeneric Type = "generic" TypeGo Type = "go" @@ -60,6 +61,7 @@ var TypeList = []Type{ TypeConan, TypeConda, TypeContainer, + TypeCran, TypeDebian, TypeGeneric, TypeGo, @@ -92,6 +94,8 @@ func (pt Type) Name() string { return "Conda" case TypeContainer: return "Container" + case TypeCran: + return "CRAN" case TypeDebian: return "Debian" case TypeGeneric: @@ -139,6 +143,8 @@ func (pt Type) SVGName() string { return "gitea-conda" case TypeContainer: return "octicon-container" + case TypeCran: + return "gitea-cran" case TypeDebian: return "gitea-debian" case TypeGeneric: -- cgit v1.2.3