From b9888fd7be6511254682cdb15ba026dda95faff6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 10 Mar 2013 10:07:54 +0100 Subject: [PATCH] xbps_match_virtual_pkg_in_dict: add support to match vpkgs with exact version. --- include/xbps_api.h.in | 2 +- lib/plist_match.c | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/xbps_api.h.in b/include/xbps_api.h.in index 2e5a8c45..3fb9ecd4 100644 --- a/include/xbps_api.h.in +++ b/include/xbps_api.h.in @@ -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" diff --git a/lib/plist_match.c b/lib/plist_match.c index 0a16ba46..df00244f 100644 --- a/lib/plist_match.c +++ b/lib/plist_match.c @@ -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; }