mirror of
https://github.com/mudler/luet.git
synced 2025-06-25 23:12:13 +00:00
18 lines
306 B
Go
18 lines
306 B
Go
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()
|
|
}
|