|
|
4b6aa8 |
From 49ddc9209df746b83ca4767075c56f4df790a03c Mon Sep 17 00:00:00 2001
|
|
|
4b6aa8 |
From: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
4b6aa8 |
Date: Tue, 29 Mar 2016 12:01:30 +0200
|
|
|
4b6aa8 |
Subject: [PATCH] rhtsupport: Discourage users from opening one-shot crashes
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Related: #1258482
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
4b6aa8 |
---
|
|
|
4b6aa8 |
src/plugins/reporter-rhtsupport.c | 17 +++++++++++++++++
|
|
|
4b6aa8 |
1 file changed, 17 insertions(+)
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
index 90988fc..2374dd9 100644
|
|
|
4b6aa8 |
--- a/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
+++ b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
@@ -630,6 +630,23 @@ int main(int argc, char **argv)
|
|
|
4b6aa8 |
rhts_result_t *result_atch = NULL;
|
|
|
4b6aa8 |
char *dsc = NULL;
|
|
|
4b6aa8 |
char *summary = NULL;
|
|
|
4b6aa8 |
+
|
|
|
4b6aa8 |
+ const char *count = NULL;
|
|
|
4b6aa8 |
+ count = problem_data_get_content_or_NULL(problem_data, FILENAME_COUNT);
|
|
|
4b6aa8 |
+ if (count != NULL
|
|
|
4b6aa8 |
+ && strcmp(count, "1") == 0
|
|
|
4b6aa8 |
+ /* the 'count' file can lie */
|
|
|
4b6aa8 |
+ && get_problem_data_reproducible(problem_data) <= PROBLEM_REPRODUCIBLE_UNKNOWN)
|
|
|
4b6aa8 |
+ {
|
|
|
4b6aa8 |
+ int r = ask_yes_no(
|
|
|
4b6aa8 |
+ _("The problem has only occurred once and the ability to reproduce "
|
|
|
4b6aa8 |
+ "the problem is unknown. Please ensure you will be able to "
|
|
|
4b6aa8 |
+ "provide detailed information to our Support Team. "
|
|
|
4b6aa8 |
+ "Would you like to continue and open a new support case?"));
|
|
|
4b6aa8 |
+ if (!r)
|
|
|
4b6aa8 |
+ exit(EXIT_CANCEL_BY_USER);
|
|
|
4b6aa8 |
+ }
|
|
|
4b6aa8 |
+
|
|
|
4b6aa8 |
const char *function;
|
|
|
4b6aa8 |
const char *reason;
|
|
|
4b6aa8 |
const char *package;
|
|
|
4b6aa8 |
--
|
|
|
4b6aa8 |
1.8.3.1
|
|
|
4b6aa8 |
|