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

@@ -86,7 +86,7 @@ check_virtual_pkgs(struct xbps_handle *xhp,
xbps_dictionary_get_cstring_nocopy(trans_pkgd, "pkgver", &pkgver);
pkgdepname = xbps_pkg_name(pkgver);
assert(pkgdepname);
if (xbps_find_pkg_in_array(unsorted, pkgdepname)) {
if (xbps_find_pkg_in_array(unsorted, pkgdepname, NULL)) {
free(pkgdepname);
continue;
}
@@ -196,7 +196,7 @@ xbps_transaction_revdeps(struct xbps_handle *xhp)
* is in the transaction.
*/
pkgname = xbps_pkg_name(curpkgver);
if (xbps_find_pkg_in_array(unsorted, pkgname)) {
if (xbps_find_pkg_in_array(unsorted, pkgname, NULL)) {
free(pkgname);
continue;
}