Allow sync and update subcommands when local database files are corrupt

This commit is contained in:
2025-04-16 20:13:22 +03:00
parent 78dce34b64
commit b27137da29
3 changed files with 82 additions and 14 deletions
-9
View File
@@ -34,14 +34,5 @@ func ReadConfig() (err error) {
}
}
for _, repo := range BPMConfig.Repositories {
repo.Entries = make(map[string]*RepositoryEntry)
repo.VirtualPackages = make(map[string][]string)
err := repo.ReadLocalDatabase()
if err != nil {
return err
}
}
return nil
}