worker/osbuild: handle manifest dynamic argument index
Previously, the `OSBuild` job assumed that it can have only a single job dependency, which could be only the `ManifestJobByID`. This won't work well for the Koji use case, because the Koji OSBuild job has also dependency on the Koji-init job. Extend the `worker.OSBuildJob` structure with a new field, which holds the `ManifestJobByIDResult` index in the job's dynamic arguments slice. This value is considered in case when there is more than one dependency of the `OSBuild` job.
This commit is contained in:
parent
a4e6531565
commit
97da1e7ad6
2 changed files with 19 additions and 9 deletions
|
|
@ -16,9 +16,11 @@ import (
|
|||
//
|
||||
|
||||
type OSBuildJob struct {
|
||||
Manifest distro.Manifest `json:"manifest,omitempty"`
|
||||
Targets []*target.Target `json:"targets,omitempty"`
|
||||
ImageName string `json:"image_name,omitempty"`
|
||||
Manifest distro.Manifest `json:"manifest,omitempty"`
|
||||
// Index of the ManifestJobByIDResult instance in the job's dynamic arguments slice
|
||||
ManifestDynArgsIdx *int `json:"manifest_dyn_args_idx,omitempty"`
|
||||
Targets []*target.Target `json:"targets,omitempty"`
|
||||
ImageName string `json:"image_name,omitempty"`
|
||||
|
||||
// TODO: Delete this after "some" time (kept for backward compatibility)
|
||||
StreamOptimized bool `json:"stream_optimized,omitempty"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue