mirror of
https://github.com/EnumeratedDev/bpm.git
synced 2026-10-31 19: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
+9
-5
@@ -281,12 +281,16 @@ 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)
|
||||
// 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
|
||||
|
||||
Reference in new issue
Block a user