From bae664c6397cbee14ec0deefc3dafffb78773b96 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 29 Dec 2011 16:35:56 +0100 Subject: [PATCH] xbps_match_pkgpattern_in_array: fix swapped args resulting in non matches. --- include/xbps_api.h | 2 +- lib/plist_match.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index a29d8a65..1df9f451 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,7 +56,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.3" -#define XBPS_API_VERSION "20111228-2" +#define XBPS_API_VERSION "20111229" #define XBPS_VERSION "0.12" /** diff --git a/lib/plist_match.c b/lib/plist_match.c index 2f08ca36..57b2d4e7 100644 --- a/lib/plist_match.c +++ b/lib/plist_match.c @@ -120,7 +120,7 @@ match_string_in_array(prop_array_t array, const char *str, int mode) } else if (mode == 2) { /* match by pkgpattern */ pkgdep = prop_string_cstring_nocopy(obj); - if (xbps_pkgpattern_match(pkgdep, str)) { + if (xbps_pkgpattern_match(str, pkgdep)) { found = true; break; }