diff --git a/bin/xbps-rindex/index-clean.c b/bin/xbps-rindex/index-clean.c index 7d4395c7..5a318223 100644 --- a/bin/xbps-rindex/index-clean.c +++ b/bin/xbps-rindex/index-clean.c @@ -148,9 +148,9 @@ index_clean(struct xbps_handle *xhp, const char *repodir) xbps_array_get_cstring_nocopy(cbd.result, x, &keyname); printf("index-files: removed entry %s\n", keyname); printf("index: removed entry %s\n", keyname); - xbps_dictionary_remove(idxfiles, keyname); pkgname = xbps_pkg_name(keyname); xbps_dictionary_remove(idx, pkgname); + xbps_dictionary_remove(idxfiles, keyname); free(pkgname); flush = true; }