luet/pkg/installer/system.go

18 lines
306 B
Go
Raw Normal View History

2019-11-22 20:01:38 +00:00
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()
}