From f4a030be0acb12e59cd81ce70353599fe5f6f8a9 Mon Sep 17 00:00:00 2001 From: Matthias Klumpp Date: Wed, 22 Nov 2023 22:44:01 +0100 Subject: [PATCH] cli: Don't fail what-provides if components were found --- tools/ascli-actions-mdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ascli-actions-mdata.c b/tools/ascli-actions-mdata.c index dbc5ea4cb..54e7e6912 100644 --- a/tools/ascli-actions-mdata.c +++ b/tools/ascli-actions-mdata.c @@ -223,7 +223,7 @@ ascli_what_provides (const gchar *cachepath, } result = as_pool_get_components_by_provided_item (pool, kind, item); - if (as_component_box_len (result)) { + if (as_component_box_len (result) == 0) { /* TRANSLATORS: Search for provided items (e.g. mimetypes, modaliases, ..) yielded no results */ ascli_print_stdout ( _("Could not find component providing '%s::%s'."), kind_str, item);