cloudapi: use osbuild v2 result struct to extract metadata
Reading stage metadata using osbuild's v2 result format. For RPM stages we only want the core (OS) RPMs (not the build root RPMs). Skip the build pipeline by name, but this should be handled better since names are arbitrary. Using type switch to convert metadata types instead of relying on the type string of the stage result. The rpmmd helper function isn't used anymore since that requires two conversion passes (osbuild.StageMetadata -> rpmmd.RPM -> cloudapi.PackageMetadata). Signed-off-by: Achilleas Koutsou <achilleas@koutsou.net>
This commit is contained in:
parent
9dff17e172
commit
2004c71f89
3 changed files with 39 additions and 58 deletions
|
|
@ -2,7 +2,7 @@ package worker
|
|||
|
||||
import (
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
osbuild "github.com/osbuild/osbuild-composer/internal/osbuild1"
|
||||
osbuild "github.com/osbuild/osbuild-composer/internal/osbuild2"
|
||||
"github.com/osbuild/osbuild-composer/internal/rpmmd"
|
||||
"github.com/osbuild/osbuild-composer/internal/target"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue