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

@ -123,8 +123,8 @@ find_orphans:
for (unsigned int x = 0; x < xbps_array_count(rdeps); x++) {
cnt = 0;
xbps_array_get_cstring_nocopy(rdeps, x, &deppkgver);
if (xbps_find_pkg_in_array(array, deppkgver) ||
xbps_find_virtualpkg_in_array(xhp, array, deppkgver))
if (xbps_find_pkg_in_array(array, deppkgver, NULL) ||
xbps_find_virtualpkg_in_array(xhp, array, deppkgver, NULL))
continue;
reqby = xbps_pkgdb_get_pkg_revdeps(xhp, deppkgver);
if (reqby == NULL)
@ -132,8 +132,8 @@ find_orphans:
reqbycnt = xbps_array_count(reqby);
for (unsigned int j = 0; j < reqbycnt; j++) {
xbps_array_get_cstring_nocopy(reqby, j, &reqbydep);
if (xbps_find_pkg_in_array(array, reqbydep) ||
xbps_find_virtualpkg_in_array(xhp, array, reqbydep))
if (xbps_find_pkg_in_array(array, reqbydep, NULL) ||
xbps_find_virtualpkg_in_array(xhp, array, reqbydep, NULL))
cnt++;
}
if (cnt == reqbycnt) {