[gnome-software] Support UNAVAILABLE desktop applications
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Support UNAVAILABLE desktop applications
- Date: Thu, 11 Dec 2014 16:54:15 +0000 (UTC)
commit fbcb020420fa43642781098e18b16b75a945dba9
Author: Richard Hughes <richard hughsie com>
Date: Wed Dec 10 11:51:21 2014 +0000
Support UNAVAILABLE desktop applications
These are applications we know about, but can't yet install.
src/plugins/gs-plugin-packagekit-refine.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit-refine.c b/src/plugins/gs-plugin-packagekit-refine.c
index 992c0b5..e9db9f7 100644
--- a/src/plugins/gs-plugin-packagekit-refine.c
+++ b/src/plugins/gs-plugin-packagekit-refine.c
@@ -189,6 +189,15 @@ gs_plugin_packagekit_resolve_packages_app (GsPlugin *plugin,
case PK_INFO_ENUM_AVAILABLE:
number_available++;
break;
+#if PK_CHECK_VERSION(1,0,4)
+ case PK_INFO_ENUM_UNAVAILABLE:
+ data = pk_package_get_data (package);
+ gs_plugin_packagekit_set_origin (plugin, app, data);
+ gs_app_set_state (app, AS_APP_STATE_UNAVAILABLE);
+ gs_app_set_size (app, GS_APP_SIZE_MISSING);
+ number_available++;
+ break;
+#endif
default:
/* should we expect anything else? */
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]