manifest: container specs added during serialization

Add a second argument, map[string][]container.Spec, during
serialization, which serves the same purpose as the depsolved package
sets.
This commit is contained in:
Achilleas Koutsou 2023-05-15 21:39:11 +02:00 committed by Simon de Vlieger
parent b1f185959b
commit 267a27a1a8
21 changed files with 41 additions and 34 deletions

View file

@ -4,6 +4,7 @@ import (
"path/filepath"
"github.com/osbuild/osbuild-composer/internal/common"
"github.com/osbuild/osbuild-composer/internal/container"
"github.com/osbuild/osbuild-composer/internal/osbuild"
"github.com/osbuild/osbuild-composer/internal/platform"
"github.com/osbuild/osbuild-composer/internal/rpmmd"
@ -82,7 +83,7 @@ func (p *OSTreeCommitServer) getPackageSpecs() []rpmmd.PackageSpec {
return p.packageSpecs
}
func (p *OSTreeCommitServer) serializeStart(packages []rpmmd.PackageSpec) {
func (p *OSTreeCommitServer) serializeStart(packages []rpmmd.PackageSpec, _ []container.Spec) {
if len(p.packageSpecs) > 0 {
panic("double call to serializeStart()")
}