Move repository helpers under config

They are generated after the system config, let the structure provide such information
This commit is contained in:
Ettore Di Giacinto
2020-02-12 10:20:07 +01:00
parent 4f33eca263
commit dfb6dab9dc
12 changed files with 59 additions and 75 deletions

View File

@@ -64,7 +64,7 @@ var uninstallCmd = &cobra.Command{
if LuetCfg.GetSystem().DatabaseEngine == "boltdb" {
systemDB = pkg.NewBoltDatabase(
filepath.Join(helpers.GetSystemRepoDatabaseDirPath(), "luet.db"))
filepath.Join(LuetCfg.GetSystem().GetSystemRepoDatabaseDirPath(), "luet.db"))
} else {
systemDB = pkg.NewInMemoryDatabase(true)
}