Fix not reading local databases after reloading config during package update
This commit is contained in:
parent
97d5a06ce7
commit
f2bc7c8968
@ -281,12 +281,16 @@ func UpdatePackages(rootDir string, syncDatabase bool, installOptionalDependenci
|
|||||||
if verbose {
|
if verbose {
|
||||||
fmt.Println("All package databases synced successfully!")
|
fmt.Println("All package databases synced successfully!")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Reload config and local databases
|
// Reload config and local databases
|
||||||
err = ReadConfig()
|
err = ReadConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("could not read BPM config: %s", err)
|
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
|
// Get installed packages and check for updates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user