From 3692ecb537755da9366587d448d6c4ec58d63b47 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 20 Feb 2015 11:07:35 +0100 Subject: [PATCH] xbps-query/search: fix previous. --- bin/xbps-query/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/xbps-query/search.c b/bin/xbps-query/search.c index 7d9ec107..c41ef5ec 100644 --- a/bin/xbps-query/search.c +++ b/bin/xbps-query/search.c @@ -130,8 +130,8 @@ search_array_cb(struct xbps_handle *xhp _unused, xbps_array_add_cstring_nocopy(sd->results, desc); } else { if ((strcasestr(pkgver, sd->pat)) || - (strcasestr(desc, sd->pat))) { - (xbps_pkgpattern_match(pkgver, sd->pat)) || + (strcasestr(desc, sd->pat)) || + (xbps_pkgpattern_match(pkgver, sd->pat))) { xbps_array_add_cstring_nocopy(sd->results, pkgver); xbps_array_add_cstring_nocopy(sd->results, desc); }