xbps-rindex: in add mode also remove old entry from index-files.
This commit is contained in:
parent
d2f2796c85
commit
ae8925d907
@ -137,7 +137,7 @@ index_add(struct xbps_handle *xhp, int argc, char **argv, bool force)
|
|||||||
*/
|
*/
|
||||||
buf = xbps_xasprintf("`%s' (%s)", oldpkgver, oldarch);
|
buf = xbps_xasprintf("`%s' (%s)", oldpkgver, oldarch);
|
||||||
xbps_dictionary_remove(idx, pkgname);
|
xbps_dictionary_remove(idx, pkgname);
|
||||||
xbps_dictionary_remove(idxfiles, pkgname);
|
xbps_dictionary_remove(idxfiles, oldpkgver);
|
||||||
printf("index: removed obsolete entry %s.\n", buf);
|
printf("index: removed obsolete entry %s.\n", buf);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user