xbps-repo: [index] use proper arch obj to remove old entry.
This commit is contained in:
parent
29f9724ba0
commit
adc6ce9d22
@ -290,8 +290,8 @@ repo_index_add(struct xbps_handle *xhp, int argc, char **argv)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
if (!xbps_remove_pkg_from_array_by_pkgver(xhp, idx,
|
if (!xbps_remove_pkg_from_array_by_pkgver(xhp, idx,
|
||||||
buf2, NULL)) {
|
buf2, oldarch)) {
|
||||||
xbps_error_printf("failed to remove `%s' "
|
xbps_error_printf("failed to remove %s "
|
||||||
"from plist index: %s\n", buf,
|
"from plist index: %s\n", buf,
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
rv = errno;
|
rv = errno;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user