This commit is contained in:
Ettore Di Giacinto
2019-11-22 21:01:38 +01:00
parent df78308e98
commit a2f23d3bf5
7 changed files with 697 additions and 0 deletions

17
pkg/installer/system.go Normal file
View File

@@ -0,0 +1,17 @@
package installer
import (
pkg "github.com/mudler/luet/pkg/package"
"github.com/mudler/luet/pkg/tree"
)
type System struct {
Database pkg.PackageDatabase
Target string
}
func (s *System) World() ([]pkg.Package, error) {
t := tree.NewDefaultTree()
t.SetPackageSet(s.Database)
return t.World()
}