From 4defa49b7f7c7e73ac914c4a35bf1f8754580d1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Roth?= Date: Mon, 4 May 2026 20:48:05 +0200 Subject: [PATCH] publish: lock resources from all SourceKinds --- api/publish.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api/publish.go b/api/publish.go index f13e0b62..7de257db 100644 --- a/api/publish.go +++ b/api/publish.go @@ -500,7 +500,7 @@ func apiPublishUpdateSwitch(c *gin.Context) { for _, sourceID := range snapshot.SourceIDs { if snapshot.SourceKind == deb.SourceSnapshot { // FIXME: implement - err := errors.New("not implemented") + err := errors.New("not implemented deb.SourceSnapshot") AbortWithJSONError(c, http.StatusNotFound, err) return } else if snapshot.SourceKind == deb.SourceLocalRepo { @@ -511,6 +511,11 @@ func apiPublishUpdateSwitch(c *gin.Context) { return } resources = append(resources, string(repo.Key())) + } else if snapshot.SourceKind == deb.SourceRemoteRepo { + // FIXME: implement + err := errors.New("not implemented: deb.SourceRemoteRepo") + AbortWithJSONError(c, http.StatusNotFound, err) + return } } }