[gnome-software] Add a hack to workaround missing AppStream data
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add a hack to workaround missing AppStream data
- Date: Thu, 29 Aug 2013 15:38:38 +0000 (UTC)
commit f32e884d996b635a514eb711de66d3f37b222b6b
Author: Richard Hughes <richard hughsie com>
Date: Thu Aug 29 16:34:30 2013 +0100
Add a hack to workaround missing AppStream data
src/plugins/gs-plugin-packagekit.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index e0e1257..6a71552 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -184,6 +184,15 @@ gs_plugin_packagekit_add_installed_results (GsPlugin *plugin,
pk_info_enum_to_string (pk_package_get_info (package)));
}
gs_app_set_kind (app, GS_APP_KIND_PACKAGE);
+
+ //FIXME: hack until we've got AppStream data to use.
+ if (pk_results_get_role (results) == PK_ROLE_ENUM_SEARCH_DETAILS) {
+ g_warning ("REALLY need AppStream data");
+ gs_app_set_name (app, pk_package_get_name (package));
+ gs_app_set_summary (app, pk_package_get_summary (package));
+ gs_app_set_kind (app, GS_APP_KIND_NORMAL);
+ }
+
gs_plugin_add_app (list, app);
}
out:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]