mirror of
https://github.com/mudler/luet.git
synced 2025-09-13 22:01:39 +00:00
Make Expand and Revdeps consume a database
This commit is contained in:
committed by
Ettore Di Giacinto
parent
595c10f357
commit
556668fcc4
@@ -228,9 +228,8 @@ func (db *InMemoryDatabase) FindPackageCandidate(p Package) (Package, error) {
|
||||
|
||||
required, err := db.FindPackage(p)
|
||||
if err != nil {
|
||||
w := db.World()
|
||||
// return nil, errors.Wrap(err, "Couldn't find required package in db definition")
|
||||
packages, err := p.Expand(&w)
|
||||
packages, err := p.Expand(db)
|
||||
// Info("Expanded", packages, err)
|
||||
if err != nil || len(packages) == 0 {
|
||||
required = p
|
||||
|
Reference in New Issue
Block a user