search: fix swapped needle and haystack
parent
c088f2a692
commit
e01b29e2fa
|
@ -122,8 +122,8 @@ static void print_result_pkg(struct search_ctx *ctx, struct apk_package *pkg)
|
||||||
|
|
||||||
if (ctx->search_description) {
|
if (ctx->search_description) {
|
||||||
foreach_array_item(pmatch, ctx->filter) {
|
foreach_array_item(pmatch, ctx->filter) {
|
||||||
if (strstr(*pmatch, pkg->description) != NULL ||
|
if (strstr(pkg->description, *pmatch) != NULL ||
|
||||||
strstr(*pmatch, pkg->name->name) != NULL)
|
strstr(pkg->name->name, *pmatch) != NULL)
|
||||||
goto match;
|
goto match;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue