Matej Habrnal 34c7e2
From 8617cb20b5165de32eb56ffb63edf3193842e506 Mon Sep 17 00:00:00 2001
Matej Habrnal 34c7e2
From: Matej Habrnal <mhabrnal@redhat.com>
Matej Habrnal 34c7e2
Date: Mon, 8 Jun 2015 10:23:20 +0200
Matej Habrnal 34c7e2
Subject: [PATCH] a-a-p-ccpp-analysis: use ask_yes_no_save_result instead of
Matej Habrnal 34c7e2
 ask_yes_no_yesforever
Matej Habrnal 34c7e2
Matej Habrnal 34c7e2
We change this function because we want users have an opportunity to choose
Matej Habrnal 34c7e2
option never upload the coredump and always generate the backtrace locally.
Matej Habrnal 34c7e2
Matej Habrnal 34c7e2
We do not make the migration to this new feature because we believe the user will
Matej Habrnal 34c7e2
be ok with one more click to configure this again.
Matej Habrnal 34c7e2
We also thing that the re-configuraton will help will help familiarize users
Matej Habrnal 34c7e2
with the new feature.
Matej Habrnal 34c7e2
Matej Habrnal 34c7e2
Related to rhbz#986876
Matej Habrnal 34c7e2
Matej Habrnal 34c7e2
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
Matej Habrnal 34c7e2
---
Matej Habrnal 34c7e2
 src/plugins/abrt-action-perform-ccpp-analysis.in | 3 ++-
Matej Habrnal 34c7e2
 1 file changed, 2 insertions(+), 1 deletion(-)
Matej Habrnal 34c7e2
Matej Habrnal 34c7e2
diff --git a/src/plugins/abrt-action-perform-ccpp-analysis.in b/src/plugins/abrt-action-perform-ccpp-analysis.in
Matej Habrnal 34c7e2
index fbcd8a1..ae8ac46 100644
Matej Habrnal 34c7e2
--- a/src/plugins/abrt-action-perform-ccpp-analysis.in
Matej Habrnal 34c7e2
+++ b/src/plugins/abrt-action-perform-ccpp-analysis.in
Matej Habrnal 34c7e2
@@ -12,6 +12,7 @@ from subprocess import Popen
Matej Habrnal 34c7e2
 
Matej Habrnal 34c7e2
 import report
Matej Habrnal 34c7e2
 from reportclient import (ask_yes_no_yesforever,
Matej Habrnal 34c7e2
+                          ask_yes_no_save_result,
Matej Habrnal 34c7e2
                           RETURN_OK,
Matej Habrnal 34c7e2
                           RETURN_CANCEL_BY_USER,
Matej Habrnal 34c7e2
                           RETURN_FAILURE)
Matej Habrnal 34c7e2
@@ -58,7 +59,7 @@ def run_analyze_smart(problem_dir):
Matej Habrnal 34c7e2
     """
Matej Habrnal 34c7e2
 
Matej Habrnal 34c7e2
     retval = RETURN_CANCEL_BY_USER
Matej Habrnal 34c7e2
-    allowed = ask_yes_no_yesforever("abrt_analyze_smart_ask_upload_coredump",
Matej Habrnal 34c7e2
+    allowed = ask_yes_no_save_result("abrt_analyze_upload_coredump",
Matej Habrnal 34c7e2
                 _("Ok to upload core dump? (It may contain sensitive data). "\
Matej Habrnal 34c7e2
                   "If your answer is 'No', a stack trace will be generated locally. "\
Matej Habrnal 34c7e2
                   "(It may download a huge amount of data)."))
Matej Habrnal 34c7e2
-- 
Matej Habrnal 34c7e2
2.1.0
Matej Habrnal 34c7e2