libxbps: add xbps_find_virtualpkg_in_array_by_{name,pattern} and use it.

This commit is contained in:
Juan RP
2011-07-15 18:45:38 +02:00
parent 33d6d2e166
commit 17829cd6b4
3 changed files with 36 additions and 1 deletions

View File

@ -168,7 +168,7 @@ xbps_requiredby_pkg_add(prop_array_t pkgs_array, prop_dictionary_t pkgd)
break;
}
pkgd_regpkgdb =
xbps_find_pkg_in_array_by_pattern(pkgs_array, str);
xbps_find_virtualpkg_in_array_by_pattern(pkgs_array, str);
if (pkgd_regpkgdb == NULL)
return EINVAL;