gnome-software/0002-Revert-rpm-ostree-Hide-only-Web-and-Console-applicat.patch

30 lines
1.1 KiB
Diff

From 7667bb916408b61c4630837d4483be266bf6a799 Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Mon, 12 Jul 2021 14:54:26 +0200
Subject: [PATCH 1/2] Revert "rpm-ostree: Hide only Web and Console
applications from the search"
This reverts commit ef67695cb2e20f0cb1cfcd8965173226dd755b09.
The correct fix for https://gitlab.gnome.org/GNOME/gnome-software/-/issues/613
is https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1210
---
plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 6b1a1351..541b59f8 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -1598,6 +1598,7 @@ resolve_available_packages_app (GsPlugin *plugin,
/* set hide-from-search quirk for available apps we don't want to show */
if (!gs_app_is_installed (app)) {
switch (gs_app_get_kind (app)) {
+ case AS_COMPONENT_KIND_DESKTOP_APP:
case AS_COMPONENT_KIND_WEB_APP:
case AS_COMPONENT_KIND_CONSOLE_APP:
gs_app_add_quirk (app, GS_APP_QUIRK_HIDE_FROM_SEARCH);
--
2.31.1