Skip to content

Commit

Permalink
gs-plugin-apk: rollback proxy apps in case of failures
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloyoyoista committed Oct 23, 2022
1 parent a94c173 commit 6e7bad4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/gs-plugin-apk/gs-plugin-apk.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,15 @@ gs_plugin_update (GsPlugin *plugin,
GsApp *app = gs_app_list_index (update_list, i);
gs_app_set_state_recover (app);
}
/*gs_app_set_state_recover (app); TODO: Fix this! */

/* Roll-back apps from the original list with a quirk */
for (int i = 0; i < gs_app_list_length (list); i++)
{
GsApp *app = gs_app_list_index (list, i);
if (gs_app_has_quirk (app, GS_APP_QUIRK_IS_PROXY))
gs_app_set_state_recover (app);
}

return FALSE;
}

Expand Down

0 comments on commit 6e7bad4

Please sign in to comment.