[gnome-software: 4/9] gs-app: Allow change from AVAILABLE_LOCAL to QUEUED_FOR_INSTALL
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 4/9] gs-app: Allow change from AVAILABLE_LOCAL to QUEUED_FOR_INSTALL
- Date: Mon, 18 Jul 2022 08:42:39 +0000 (UTC)
commit 60115eb2794f53633f983e127b2b836fe83d1f2f
Author: Matthew Leeds <matthew leeds endlessm com>
Date: Wed Aug 12 13:02:22 2020 -0700
gs-app: Allow change from AVAILABLE_LOCAL to QUEUED_FOR_INSTALL
Just as we allow this state change for AS_APP_STATE_AVAILABLE, allow it
for AS_APP_STATE_AVAILABLE_LOCAL, which helps the flatpakref unit test
pass.
(Rebased from downstream Endless OS by Philip Withnall)
lib/gs-app.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 29898765b..49cc9eb8e 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -1161,6 +1161,7 @@ gs_app_set_state_internal (GsApp *app, GsAppState state)
case GS_APP_STATE_AVAILABLE_LOCAL:
/* local has to go into an action state */
if (state == GS_APP_STATE_UNKNOWN ||
+ state == GS_APP_STATE_QUEUED_FOR_INSTALL ||
state == GS_APP_STATE_INSTALLING)
state_change_ok = TRUE;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]