libxbps: fixed replaces/replace_vpkg test case.

This commit is contained in:
Juan RP
2014-09-14 12:50:17 +02:00
parent c36c641350
commit c9514ad617
10 changed files with 36 additions and 32 deletions

View File

@ -89,7 +89,7 @@ xbps_transaction_package_replace(struct xbps_handle *xhp)
/*
* Make sure to not add duplicates.
*/
reppkgd = xbps_find_pkg_in_array(unsorted, curpkgname);
reppkgd = xbps_find_pkg_in_array(unsorted, curpkgname, NULL);
if (reppkgd) {
xbps_dictionary_get_cstring_nocopy(reppkgd,
"transaction", &tract);
@ -102,7 +102,7 @@ xbps_transaction_package_replace(struct xbps_handle *xhp)
* transaction and it's going to be updated.
*/
xbps_dictionary_get_bool(instd, "automatic-install", &instd_auto);
if ((reppkgd = xbps_find_pkg_in_array(unsorted, curpkgname))) {
if ((reppkgd = xbps_find_pkg_in_array(unsorted, curpkgname, NULL))) {
xbps_dictionary_set_bool(instd,
"remove-and-update", true);
xbps_dictionary_set_bool(reppkgd,