Use well defined structure for serializing, fixups to make test green

This commit is contained in:
Ettore Di Giacinto
2019-11-23 15:42:05 +01:00
parent a879411c54
commit e9c01b46a7
7 changed files with 57 additions and 14 deletions

View File

@@ -34,7 +34,11 @@ const (
FinalizerFile = "finalize.yaml"
)
func NewInstallerRecipe(db pkg.PackageDatabase) Builder { return &InstallerRecipe{Database: db} }
func NewInstallerRecipe(db pkg.PackageDatabase) Builder {
tree := NewDefaultTree()
tree.SetPackageSet(db)
return &InstallerRecipe{Database: db, PackageTree: tree}
}
// InstallerRecipe is the "general" reciper for Trees
type InstallerRecipe struct {