xbps-rindex: in add mode also remove old entry from index-files.
This commit is contained in:
1 parent
d2f2796c85
commit
ae8925d907
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user