xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version.

This commit is contained in:
Juan RP
2013-03-10 10:07:54 +01:00
parent 8fce81cc9f
commit b9888fd7be
2 changed files with 6 additions and 3 deletions

View File

@@ -52,8 +52,11 @@ xbps_match_virtual_pkg_in_dict(prop_dictionary_t d,
if ((provides = prop_dictionary_get(d, "provides"))) {
if (bypattern)
found = xbps_match_pkgpattern_in_array(provides, str);
else
found = xbps_match_pkgname_in_array(provides, str);
else {
if ((xbps_match_pkgname_in_array(provides, str)) ||
(xbps_match_pkgdep_in_array(provides, str)))
return true;
}
}
return found;
}