xbps-rindex: in add mode also remove old entry from index-files.

This commit is contained in:
Juan RP 2013-11-25 11:03:51 +01:00
parent d2f2796c85
commit ae8925d907

View File

@ -137,7 +137,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
*/
buf = xbps_xasprintf("`%s' (%s)", oldpkgver, oldarch);
xbps_dictionary_remove(idx, pkgname);
xbps_dictionary_remove(idxfiles, pkgname);
xbps_dictionary_remove(idxfiles, oldpkgver);
printf("index: removed obsolete entry %s.\n", buf);
free(buf);
}