From 20213deb10cdb11e4791c7694344aaa78804892b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 25 Nov 2013 11:05:06 +0100 Subject: [PATCH] xbps-rindex: clean: use the correct key from index-files. --- bin/xbps-rindex/index-clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/index-clean.c b/bin/xbps-rindex/index-clean.c index ac64b319..a11e6284 100644 --- a/bin/xbps-rindex/index-clean.c +++ b/bin/xbps-rindex/index-clean.c @@ -96,7 +96,7 @@ idxfiles_cleaner_cb(struct xbps_handle *xhp _unused, xbps_object_t obj _unused, if ((pkg = xbps_dictionary_get(cbd->idx, pkgname))) { xbps_dictionary_get_cstring_nocopy(pkg, "pkgver", &pkgver); if (strcmp(pkgver, key)) - xbps_array_add_cstring_nocopy(cbd->result, pkgver); + xbps_array_add_cstring_nocopy(cbd->result, key); } free(pkgname);