xbps-query/search: fix previous.

This commit is contained in:
Juan RP 2015-02-20 11:07:35 +01:00
parent 341e8a10ae
commit 3692ecb537

View File

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