We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9abac3 commit 30a4ebbCopy full SHA for 30a4ebb
1 file changed
libpkg/repo/binary/update.c
@@ -829,6 +829,9 @@ pkg_repo_binary_update(struct pkg_repo *repo, bool force)
829
res = pkg_repo_binary_update_proceed(filename, repo, &t, force);
830
if (res != EPKG_OK && res != EPKG_UPTODATE) {
831
pkg_emit_notice("Unable to update repository %s", repo->name);
832
+ /* Remove potentially corrupted repo database so the
833
+ * next update can start fresh */
834
+ unlink(filename);
835
goto cleanup;
836
}
837
0 commit comments