rcm: pass packages when pushing a compose
In the post-dnf-stage world, `Distro.Manifest` expects the full list of depsolved packages. This is similar to what weldr does, but much simpler, because the rcm API only cares about base packages.
This commit is contained in:
parent
c2c8fae093
commit
15033faa81
2 changed files with 42 additions and 5 deletions
|
|
@ -76,7 +76,8 @@ type ComposeRequest struct {
|
|||
Distro distro.Distro
|
||||
Arch common.Architecture
|
||||
Repositories []rpmmd.RepoConfig
|
||||
Checksums map[string]string
|
||||
Packages []rpmmd.PackageSpec
|
||||
BuildPackages []rpmmd.PackageSpec
|
||||
RequestedImages []common.ImageRequest
|
||||
}
|
||||
|
||||
|
|
@ -679,7 +680,7 @@ func (s *Store) PushComposeRequest(request ComposeRequest) error {
|
|||
if !exists {
|
||||
panic("fatal error, image type should exist but it does not")
|
||||
}
|
||||
manifestStruct, err := request.Distro.Manifest(request.Blueprint.Customizations, request.Repositories, nil, nil, arch, imgTypeCompatStr, 0)
|
||||
manifestStruct, err := request.Distro.Manifest(request.Blueprint.Customizations, request.Repositories, request.Packages, request.BuildPackages, arch, imgTypeCompatStr, 0)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue