mirror of
https://github.com/mudler/luet.git
synced 2025-09-02 15:54:39 +00:00
WIP
This commit is contained in:
17
pkg/installer/system.go
Normal file
17
pkg/installer/system.go
Normal 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()
|
||||
}
|
Reference in New Issue
Block a user