xbps_match_pkgpattern_in_array: fix swapped args resulting in non matches.
This commit is contained in:
parent
0d44ae267c
commit
bae664c639
@ -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"
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user