xbps-repo: [index] use proper arch obj to remove old entry.

This commit is contained in:
Juan RP 2012-07-21 22:23:45 +02:00
parent 29f9724ba0
commit adc6ce9d22

View File

@ -290,8 +290,8 @@ repo_index_add(struct xbps_handle *xhp, int argc, char **argv)
goto out;
}
if (!xbps_remove_pkg_from_array_by_pkgver(xhp, idx,
buf2, NULL)) {
xbps_error_printf("failed to remove `%s' "
buf2, oldarch)) {
xbps_error_printf("failed to remove %s "
"from plist index: %s\n", buf,
strerror(errno));
rv = errno;