[gnome-software/1754-improve-the-sources-dropdown: 3/6] packagekit: Set app packaging information for origin popover rows




commit 1bb6f7d9e261a4a41159a4b1ddf501809a7e214a
Author: Milan Crha <mcrha redhat com>
Date:   Wed Aug 3 16:06:17 2022 +0200

    packagekit: Set app packaging information for origin popover rows

 plugins/packagekit/packagekit-common.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/plugins/packagekit/packagekit-common.c b/plugins/packagekit/packagekit-common.c
index c4cbde895..7f93551fa 100644
--- a/plugins/packagekit/packagekit-common.c
+++ b/plugins/packagekit/packagekit-common.c
@@ -577,5 +577,10 @@ gs_plugin_packagekit_set_packaging_format (GsPlugin *plugin, GsApp *app)
        } else if (gs_plugin_check_distro_id (plugin, "debian") ||
                   gs_plugin_check_distro_id (plugin, "ubuntu")) {
                gs_app_set_metadata (app, "GnomeSoftware::PackagingFormat", "deb");
+       } else {
+               return;
        }
+
+       gs_app_set_metadata (app, "GnomeSoftware::PackagingBaseCssColor", "error_bg_color");
+       gs_app_set_metadata (app, "GnomeSoftware::PackagingIcon", "package-x-generic-symbolic");
 }


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