Blame SOURCES/0201-rhtsupport-add-pkg_vendor-reproducer-and-reproducibl.patch

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