[gnome-software] Prompt for auth when app installation requires it
- From: Iain Lane <iainl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Prompt for auth when app installation requires it
- Date: Mon, 26 Jun 2017 16:01:53 +0000 (UTC)
commit 32ae42bb12c8b217f698e6414742a82eecfe71b2
Author: Iain Lane <iain orangesquash org uk>
Date: Mon Jun 26 16:11:46 2017 +0100
Prompt for auth when app installation requires it
If an app installation fails with GS_PLUGIN_ERROR_AUTH_REQUIRED, we
should prompt for auth and then retry the installation. Adding
GS_PLUGIN_FAILURE_FLAGS_FATAL_AUTH to the job makes this happen.
src/gs-page.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-page.c b/src/gs-page.c
index b005542..6102303 100644
--- a/src/gs-page.c
+++ b/src/gs-page.c
@@ -470,7 +470,8 @@ gs_page_install_app (GsPage *page,
plugin_job = gs_plugin_job_newv (helper->action,
"app", helper->app,
- "failure-flags", GS_PLUGIN_FAILURE_FLAGS_USE_EVENTS,
+ "failure-flags", GS_PLUGIN_FAILURE_FLAGS_USE_EVENTS |
+ GS_PLUGIN_FAILURE_FLAGS_FATAL_AUTH,
NULL);
gs_plugin_loader_job_process_async (priv->plugin_loader,
plugin_job,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]