mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-10-31 11:01:48 +00:00
Fix not reading local databases after reloading config during package update
This commit is contained in:
1 parent
97d5a06ce7
commit
f2bc7c8968
1 file changed
+5
-1
@@ -281,13 +281,17 @@ func UpdatePackages(rootDir string, syncDatabase bool, installOptionalDependenci
|
||||
if verbose {
|
||||
fmt.Println("All package databases synced successfully!")
|
||||
}
|
||||
}
|
||||
|
||||
// Reload config and local databases
|
||||
err = ReadConfig()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not read BPM config: %s", err)
|
||||
}
|
||||
err = ReadLocalDatabases()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not read local databases: %s", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Get installed packages and check for updates
|
||||
pkgs, err := GetInstalledPackages(rootDir)
|
||||
|
||||
Reference in new issue
Block a user