xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version.
This commit is contained in:
parent
8fce81cc9f
commit
b9888fd7be
@ -48,7 +48,7 @@
|
||||
*/
|
||||
#define XBPS_PKGINDEX_VERSION "1.7"
|
||||
|
||||
#define XBPS_API_VERSION "20130308"
|
||||
#define XBPS_API_VERSION "20130310"
|
||||
|
||||
#ifndef XBPS_VERSION
|
||||
#define XBPS_VERSION "UNSET"
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user