From ae8925d90710f02da8861bb19c51b7d20f1fa1db Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Nov 2013 11:03:51 +0100 Subject: [PATCH] xbps-rindex: in add mode also remove old entry from index-files. --- bin/xbps-rindex/index-add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/index-add.c b/bin/xbps-rindex/index-add.c index e1abb403..2289897a 100644 --- a/bin/xbps-rindex/index-add.c +++ b/bin/xbps-rindex/index-add.c @@ -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); }