[gnome-software] Allow INSTALLING->AVAILABLE and REMOVING->INSTALLED if the action fails beore completing
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Allow INSTALLING->AVAILABLE and REMOVING->INSTALLED if the action fails beore completing
- Date: Wed, 11 Sep 2013 13:15:08 +0000 (UTC)
commit 79f1a5e8706e5c28024185d92fe8bbc256855b8b
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 11 13:57:48 2013 +0100
Allow INSTALLING->AVAILABLE and REMOVING->INSTALLED if the action fails beore completing
src/gs-app.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 4eaaef6..d7d07d7 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -281,12 +281,14 @@ gs_app_set_state (GsApp *app, GsAppState state)
break;
case GS_APP_STATE_INSTALLING:
/* installing has to go into an stable state */
- if (state == GS_APP_STATE_INSTALLED)
+ if (state == GS_APP_STATE_INSTALLED ||
+ state == GS_APP_STATE_AVAILABLE)
state_change_ok = TRUE;
break;
case GS_APP_STATE_REMOVING:
/* removing has to go into an stable state */
- if (state == GS_APP_STATE_AVAILABLE)
+ if (state == GS_APP_STATE_AVAILABLE ||
+ state == GS_APP_STATE_INSTALLED)
state_change_ok = TRUE;
break;
case GS_APP_STATE_UPDATABLE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]