mirror of
https://github.com/mudler/luet.git
synced 2025-05-10 01:14:22 +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()
|
||
|
}
|