distro: pass entire Blueprint to Manifest()

Pass the entire Blueprint to Manifest() instead of just the
Customizations.  The goal is to combine the functionality of the
ImageType.PackageSets() and ImageType.Manifest() methods into one call.
This commit is contained in:
Achilleas Koutsou 2023-05-09 20:16:33 +02:00 committed by Simon de Vlieger
parent 30c5093fb5
commit 1a38939abf
18 changed files with 62 additions and 84 deletions

View file

@ -32,7 +32,7 @@ func getManifest(bp blueprint.Blueprint, t distro.ImageType, a distro.Arch, d di
}
pkgSpecSets[name] = res
}
mf, _, err := t.Manifest(bp.Customizations, distro.ImageOptions{}, repos, pkgSpecSets, nil, 0)
mf, _, err := t.Manifest(&bp, distro.ImageOptions{}, repos, pkgSpecSets, nil, 0)
if err != nil {
panic(err)
}