diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2023-03-13 21:28:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 15:28:39 -0500 |
commit | c709fa17a77eae391cafbe72d6b2594f74d86a60 (patch) | |
tree | 9c6ab67126c7d59a6db274ec5a9f75cdfe120be6 /services/packages | |
parent | 0a6f6354bbc03d4a3ad382a432113301e9ea9d86 (diff) | |
download | gitea-c709fa17a77eae391cafbe72d6b2594f74d86a60.tar.gz gitea-c709fa17a77eae391cafbe72d6b2594f74d86a60.zip |
Add Swift package registry (#22404)
This PR adds a [Swift](https://www.swift.org/) package registry.
![grafik](https://user-images.githubusercontent.com/1666336/211842523-07521cbd-8fb6-400f-820c-ee8048b05ae8.png)
Diffstat (limited to 'services/packages')
-rw-r--r-- | services/packages/packages.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/packages/packages.go b/services/packages/packages.go index 3abca7337c..dd5c63470b 100644 --- a/services/packages/packages.go +++ b/services/packages/packages.go @@ -361,6 +361,8 @@ func CheckSizeQuotaExceeded(ctx context.Context, doer, owner *user_model.User, p typeSpecificSize = setting.Packages.LimitSizePyPI case packages_model.TypeRubyGems: typeSpecificSize = setting.Packages.LimitSizeRubyGems + case packages_model.TypeSwift: + typeSpecificSize = setting.Packages.LimitSizeSwift case packages_model.TypeVagrant: typeSpecificSize = setting.Packages.LimitSizeVagrant } |