Commit e01b29e2 authored by Bobby Bingham's avatar Bobby Bingham Committed by Timo Teräs

search: fix swapped needle and haystack

parent c088f2a6
......@@ -122,8 +122,8 @@ static void print_result_pkg(struct search_ctx *ctx, struct apk_package *pkg)
if (ctx->search_description) {
foreach_array_item(pmatch, ctx->filter) {
if (strstr(*pmatch, pkg->description) != NULL ||
strstr(*pmatch, pkg->name->name) != NULL)
if (strstr(pkg->description, *pmatch) != NULL ||
strstr(pkg->name->name, *pmatch) != NULL)
goto match;
}
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment