[gnome-software] packagekit: Correctly set state for UNAVAILABLE packages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] packagekit: Correctly set state for UNAVAILABLE packages
- Date: Thu, 2 Jun 2016 19:56:11 +0000 (UTC)
commit f977add58a9fe68054834ad32abee4cfefca18bf
Author: Kalev Lember <klember redhat com>
Date: Thu Jun 2 14:43:16 2016 +0200
packagekit: Correctly set state for UNAVAILABLE packages
src/plugins/packagekit-common.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/packagekit-common.c b/src/plugins/packagekit-common.c
index af04a4d..bce3d14 100644
--- a/src/plugins/packagekit-common.c
+++ b/src/plugins/packagekit-common.c
@@ -259,6 +259,9 @@ gs_plugin_packagekit_add_results (GsPlugin *plugin,
case PK_INFO_ENUM_INSTALLING:
case PK_INFO_ENUM_UPDATING:
break;
+ case PK_INFO_ENUM_UNAVAILABLE:
+ gs_app_set_state (app, AS_APP_STATE_UNAVAILABLE);
+ break;
default:
gs_app_set_state (app, AS_APP_STATE_UNKNOWN);
g_warning ("unknown info state of %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]