|
|
4b6aa8 |
From 60e3877eecba52fc855ac40120e67c069e0cd60b Mon Sep 17 00:00:00 2001
|
|
|
4b6aa8 |
From: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
4b6aa8 |
Date: Thu, 3 Mar 2016 10:25:10 +0100
|
|
|
4b6aa8 |
Subject: [PATCH] rhtsupport: add pkg_vendor, reproducer and reproducible to
|
|
|
4b6aa8 |
description
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Related to: rhbz#1261358
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
|
|
|
4b6aa8 |
---
|
|
|
4b6aa8 |
src/plugins/reporter-rhtsupport.c | 21 ++++++++++++++++-----
|
|
|
4b6aa8 |
1 file changed, 16 insertions(+), 5 deletions(-)
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
diff --git a/src/plugins/reporter-rhtsupport.c b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
index 7d45b75..781b5b1 100644
|
|
|
4b6aa8 |
--- a/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
+++ b/src/plugins/reporter-rhtsupport.c
|
|
|
4b6aa8 |
@@ -27,16 +27,20 @@
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
/* problem report format template */
|
|
|
4b6aa8 |
#define PROBLEM_REPORT_TEMPLATE \
|
|
|
4b6aa8 |
- "%summary:: [abrt] %pkg_name%[[: %crash_function%()]][[: %reason%]][[: TAINTED %tainted_short%]]\n" \
|
|
|
4b6aa8 |
+ "%summary:: [abrt] [[%pkg_name%]][[: %crash_function%()]][[: %reason%]][[: TAINTED %tainted_short%]]\n" \
|
|
|
4b6aa8 |
"\n" \
|
|
|
4b6aa8 |
"Description of problem:: %bare_comment\n" \
|
|
|
4b6aa8 |
"\n" \
|
|
|
4b6aa8 |
- "Truncated backtrace:: %bare_%short_backtrace\n" \
|
|
|
4b6aa8 |
+ "Additional info::" \
|
|
|
4b6aa8 |
+ " count,reason,package,pkg_vendor,cmdline,executable,%reporter\n" \
|
|
|
4b6aa8 |
"\n" \
|
|
|
4b6aa8 |
- "Other report identifiers:: %bare_reported_to\n" \
|
|
|
4b6aa8 |
+ "How reproducible:: %bare_reproducible\n" \
|
|
|
4b6aa8 |
"\n" \
|
|
|
4b6aa8 |
- "Additional info::" \
|
|
|
4b6aa8 |
- " count,reason,package,cmdline,executable,%reporter\n"
|
|
|
4b6aa8 |
+ "Steps to reproduce:: %bare_reproducer\n" \
|
|
|
4b6aa8 |
+ "\n" \
|
|
|
4b6aa8 |
+ "Truncated backtrace:: %bare_%short_backtrace\n" \
|
|
|
4b6aa8 |
+ "\n" \
|
|
|
4b6aa8 |
+ "Other report identifiers:: %bare_reported_to\n"
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
#define ABRT_ELEMENTS_KB_ARTICLE "https://access.redhat.com/articles/2134281"
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
@@ -677,6 +681,10 @@ int main(int argc, char **argv)
|
|
|
4b6aa8 |
exit(EXIT_CANCEL_BY_USER);
|
|
|
4b6aa8 |
}
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
+ /* In the case there is no pkg_vendor file use "unknown vendor" */
|
|
|
4b6aa8 |
+ if (!vendor)
|
|
|
4b6aa8 |
+ problem_data_add_text_noteditable(problem_data, FILENAME_PKG_VENDOR, "unknown vendor");
|
|
|
4b6aa8 |
+
|
|
|
4b6aa8 |
const char *executable = NULL;
|
|
|
4b6aa8 |
executable = problem_data_get_content_or_NULL(problem_data, FILENAME_EXECUTABLE);
|
|
|
4b6aa8 |
if (!package)
|
|
|
4b6aa8 |
@@ -689,6 +697,9 @@ int main(int argc, char **argv)
|
|
|
4b6aa8 |
free(message);
|
|
|
4b6aa8 |
if (!r)
|
|
|
4b6aa8 |
exit(EXIT_CANCEL_BY_USER);
|
|
|
4b6aa8 |
+
|
|
|
4b6aa8 |
+ problem_data_add_text_noteditable(problem_data, FILENAME_PACKAGE,
|
|
|
4b6aa8 |
+ "not belong to any package");
|
|
|
4b6aa8 |
}
|
|
|
4b6aa8 |
|
|
|
4b6aa8 |
char tmpdir_name[sizeof(LARGE_DATA_TMP_DIR"/rhtsupport-"LIBREPORT_ISO_DATE_STRING_SAMPLE"-XXXXXX")];
|
|
|
4b6aa8 |
--
|
|
|
4b6aa8 |
1.8.3.1
|
|
|
4b6aa8 |
|