distro/pipeline: take depsolved packages as argument
This is unused for now, but will allow us to generate pipelines with the pre-depsolved NEVRAs, so osbuild does not need to depsolve again. Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
59da8b066f
commit
fefe5db4ce
11 changed files with 17 additions and 17 deletions
|
|
@ -1263,7 +1263,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
|
|||
}
|
||||
|
||||
if bp != nil {
|
||||
_, _, checksums, err := api.depsolveBlueprint(bp, cr.ComposeType, api.arch, true)
|
||||
packages, buildPackages, checksums, err := api.depsolveBlueprint(bp, cr.ComposeType, api.arch, true)
|
||||
if err != nil {
|
||||
errors := responseError{
|
||||
ID: "DepsolveError",
|
||||
|
|
@ -1273,7 +1273,7 @@ func (api *API) composeHandler(writer http.ResponseWriter, request *http.Request
|
|||
return
|
||||
}
|
||||
|
||||
err = api.store.PushCompose(reply.BuildID, bp, checksums, api.arch, cr.ComposeType, size, uploadTarget)
|
||||
err = api.store.PushCompose(reply.BuildID, bp, packages, buildPackages, checksums, api.arch, cr.ComposeType, size, uploadTarget)
|
||||
|
||||
// TODO: we should probably do some kind of blueprint validation in future
|
||||
// for now, let's just 500 and bail out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue