mirror of
https://github.com/mudler/luet.git
synced 2025-09-19 01:10:58 +00:00
Propagate reverse dep calculation
Whenever we update the tree with new informations, all the sibilings needs to be updated as well Also switch to inmemory db for recipe - even if this should be a switch
This commit is contained in:
@@ -69,12 +69,13 @@ func (r *Recipe) Load(path string) error {
|
||||
r.PackageTree = NewDefaultTree()
|
||||
}
|
||||
|
||||
tmpfile, err := ioutil.TempFile("", "luet")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// tmpfile, err := ioutil.TempFile("", "luet")
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
r.Tree().SetPackageSet(pkg.NewInMemoryDatabase(false))
|
||||
|
||||
r.Tree().SetPackageSet(pkg.NewBoltDatabase(tmpfile.Name()))
|
||||
//r.Tree().SetPackageSet(pkg.NewBoltDatabase(tmpfile.Name()))
|
||||
// TODO: Handle cleaning after? Cleanup implemented in GetPackageSet().Clean()
|
||||
|
||||
// the function that handles each file or dir
|
||||
@@ -103,7 +104,7 @@ func (r *Recipe) Load(path string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
err = filepath.Walk(path, ff)
|
||||
err := filepath.Walk(path, ff)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user