publish: lock resources from all SourceKinds

This commit is contained in:
André Roth
2026-05-04 20:48:05 +02:00
parent 6fbcbc108c
commit 4defa49b7f
+6 -1
View File
@@ -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
}
}
}