xbps_match_pkgpattern_in_array: fix swapped args resulting in non matches.

This commit is contained in:
Juan RP 2011-12-29 16:35:56 +01:00
parent 0d44ae267c
commit bae664c639
2 changed files with 2 additions and 2 deletions

View File

@ -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"
/**

View File

@ -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;
}