forked from forgejo/forgejo
Add RPM registry (#23380)
Fixes #20751 This PR adds a RPM package registry. You can follow [this tutorial](https://opensource.com/article/18/9/how-build-rpm-packages) to build a *.rpm package for testing. This functionality is similar to the Debian registry (#22854) and therefore shares some methods. I marked this PR as blocked because it should be merged after #22854. 
This commit is contained in:
parent
8f314c6793
commit
05209f0d1d
29 changed files with 1998 additions and 43 deletions
|
@ -44,6 +44,7 @@ const (
|
|||
TypeNuGet Type = "nuget"
|
||||
TypePub Type = "pub"
|
||||
TypePyPI Type = "pypi"
|
||||
TypeRpm Type = "rpm"
|
||||
TypeRubyGems Type = "rubygems"
|
||||
TypeSwift Type = "swift"
|
||||
TypeVagrant Type = "vagrant"
|
||||
|
@ -64,6 +65,7 @@ var TypeList = []Type{
|
|||
TypeNuGet,
|
||||
TypePub,
|
||||
TypePyPI,
|
||||
TypeRpm,
|
||||
TypeRubyGems,
|
||||
TypeSwift,
|
||||
TypeVagrant,
|
||||
|
@ -100,6 +102,8 @@ func (pt Type) Name() string {
|
|||
return "Pub"
|
||||
case TypePyPI:
|
||||
return "PyPI"
|
||||
case TypeRpm:
|
||||
return "RPM"
|
||||
case TypeRubyGems:
|
||||
return "RubyGems"
|
||||
case TypeSwift:
|
||||
|
@ -141,6 +145,8 @@ func (pt Type) SVGName() string {
|
|||
return "gitea-pub"
|
||||
case TypePyPI:
|
||||
return "gitea-python"
|
||||
case TypeRpm:
|
||||
return "gitea-rpm"
|
||||
case TypeRubyGems:
|
||||
return "gitea-rubygems"
|
||||
case TypeSwift:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue