mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
publish: lock resources from all SourceKinds
This commit is contained in:
+6
-1
@@ -500,7 +500,7 @@ func apiPublishUpdateSwitch(c *gin.Context) {
|
|||||||
for _, sourceID := range snapshot.SourceIDs {
|
for _, sourceID := range snapshot.SourceIDs {
|
||||||
if snapshot.SourceKind == deb.SourceSnapshot {
|
if snapshot.SourceKind == deb.SourceSnapshot {
|
||||||
// FIXME: implement
|
// FIXME: implement
|
||||||
err := errors.New("not implemented")
|
err := errors.New("not implemented deb.SourceSnapshot")
|
||||||
AbortWithJSONError(c, http.StatusNotFound, err)
|
AbortWithJSONError(c, http.StatusNotFound, err)
|
||||||
return
|
return
|
||||||
} else if snapshot.SourceKind == deb.SourceLocalRepo {
|
} else if snapshot.SourceKind == deb.SourceLocalRepo {
|
||||||
@@ -511,6 +511,11 @@ func apiPublishUpdateSwitch(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
resources = append(resources, string(repo.Key()))
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user