diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-02-01 19:30:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 12:30:39 -0600 |
commit | 6ba9ff7b4899f1057ac6e41947951da3e43b6918 (patch) | |
tree | 52288e45d36d029b8e440c663379d6946211e3b1 /services | |
parent | 5882e179a93a00a0635c6c578ec6d43ce68d687b (diff) | |
download | gitea-6ba9ff7b4899f1057ac6e41947951da3e43b6918.tar.gz gitea-6ba9ff7b4899f1057ac6e41947951da3e43b6918.zip |
Add Conda package registry (#22262)
This PR adds a [Conda](https://conda.io/) package registry.
Diffstat (limited to 'services')
-rw-r--r-- | services/forms/package_form.go | 2 | ||||
-rw-r--r-- | services/packages/packages.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/services/forms/package_form.go b/services/forms/package_form.go index 734bb05dc6..e78e64ef7e 100644 --- a/services/forms/package_form.go +++ b/services/forms/package_form.go @@ -15,7 +15,7 @@ import ( type PackageCleanupRuleForm struct { ID int64 Enabled bool - Type string `binding:"Required;In(composer,conan,container,generic,helm,maven,npm,nuget,pub,pypi,rubygems,vagrant)"` + Type string `binding:"Required;In(composer,conan,conda,container,generic,helm,maven,npm,nuget,pub,pypi,rubygems,vagrant)"` KeepCount int `binding:"In(0,1,5,10,25,50,100)"` KeepPattern string `binding:"RegexPattern"` RemoveDays int `binding:"In(0,7,14,30,60,90,180)"` diff --git a/services/packages/packages.go b/services/packages/packages.go index 754dfa7110..9e52cb1450 100644 --- a/services/packages/packages.go +++ b/services/packages/packages.go @@ -339,6 +339,8 @@ func CheckSizeQuotaExceeded(ctx context.Context, doer, owner *user_model.User, p typeSpecificSize = setting.Packages.LimitSizeComposer case packages_model.TypeConan: typeSpecificSize = setting.Packages.LimitSizeConan + case packages_model.TypeConda: + typeSpecificSize = setting.Packages.LimitSizeConda case packages_model.TypeContainer: typeSpecificSize = setting.Packages.LimitSizeContainer case packages_model.TypeGeneric: |