[gnome-software] plugin loader: Use QUIRK_HAS_SOURCE for detecting repo-release packages



commit daaa190b252097006c3349c65ed642a60086c8cf
Author: Kalev Lember <klember redhat com>
Date:   Thu Feb 15 12:56:46 2018 +0100

    plugin loader: Use QUIRK_HAS_SOURCE for detecting repo-release packages

 lib/gs-plugin-loader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 65605072..d82c68ea 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3298,7 +3298,7 @@ gs_plugin_loader_process_thread_cb (GTask *task,
                            _gs_app_get_icon_by_kind (app, AS_ICON_KIND_CACHED) == NULL) {
                                g_autoptr(AsIcon) ic = as_icon_new ();
                                as_icon_set_kind (ic, AS_ICON_KIND_STOCK);
-                               if (gs_app_get_kind (app) == AS_APP_KIND_SOURCE)
+                               if (gs_app_has_quirk (app, AS_APP_QUIRK_HAS_SOURCE))
                                        as_icon_set_name (ic, "x-package-repository");
                                else
                                        as_icon_set_name (ic, "application-x-executable");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]