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



commit ee9c75ecc76f6efe6450ea9ecbb5cd08d7df930c
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/gs-plugin-packagekit-refine.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit-refine.c 
b/plugins/packagekit/gs-plugin-packagekit-refine.c
index fee69a64..0f9574a1 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -501,6 +501,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]