summaryrefslogtreecommitdiffstats
path: root/services/packages
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2023-03-13 21:28:39 +0100
committerGitHub <noreply@github.com>2023-03-13 15:28:39 -0500
commitc709fa17a77eae391cafbe72d6b2594f74d86a60 (patch)
tree9c6ab67126c7d59a6db274ec5a9f75cdfe120be6 /services/packages
parent0a6f6354bbc03d4a3ad382a432113301e9ea9d86 (diff)
downloadgitea-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.go2
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
}