[gnome-software] packagekit: Set description from package details when refining



commit 4b9871b3bc2943ce73035db0f41f686e4181cd9e
Author: Kalev Lember <klember redhat com>
Date:   Thu Jan 25 16:48:37 2018 +0100

    packagekit: Set description from package details when refining
    
    This makes package search in the extras page look a bit nicer.

 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 90534a6f..b03c3832 100644
--- a/plugins/packagekit/packagekit-common.c
+++ b/plugins/packagekit/packagekit-common.c
@@ -496,6 +496,11 @@ gs_plugin_packagekit_refine_details_app (GsPlugin *plugin,
                                                AS_URL_KIND_HOMEPAGE,
                                                pk_details_get_url (details));
                        }
+                       if (gs_app_get_description (app) == NULL) {
+                               gs_app_set_description (app,
+                                                       GS_APP_QUALITY_LOWEST,
+                                                       pk_details_get_description (details));
+                       }
                        size += pk_details_get_size (details);
                        break;
                }


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