ishcherb / rpms / abrt

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