summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-02-08 13:38:50 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-02-08 13:38:50 +0100
commit94b1d40a72f55b787fa78a9398f47eb8514e0d21 (patch)
tree9e56bf0c03356571fae068345dbf637e5631ac08 /lib
parent42dd1794caf6de8d7e1e77ce7cafad80400d4175 (diff)
downloadabrt-94b1d40a72f55b787fa78a9398f47eb8514e0d21.tar.gz
abrt-94b1d40a72f55b787fa78a9398f47eb8514e0d21.tar.xz
abrt-94b1d40a72f55b787fa78a9398f47eb8514e0d21.zip
make "reason" field less verbose; bz reporter: include it in "summary"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/Bugzilla.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp
index b809e34c..9e889c4b 100644
--- a/lib/Plugins/Bugzilla.cpp
+++ b/lib/Plugins/Bugzilla.cpp
@@ -315,8 +315,14 @@ uint32_t ctx::new_bug(const map_crash_data_t& pCrashData)
const std::string& release = get_crash_data_item_content(pCrashData, FILENAME_RELEASE);
const std::string& arch = get_crash_data_item_content(pCrashData, FILENAME_ARCHITECTURE);
const std::string& uuid = get_crash_data_item_content(pCrashData, CD_DUPHASH);
+ const char *reason = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_REASON);
std::string summary = "[abrt] crash in " + package;
+ if (reason != NULL)
+ {
+ summary += ": ";
+ summary += reason;
+ }
std::string status_whiteboard = "abrt_hash:" + uuid;
std::string description = "abrt "VERSION" detected a crash.\n\n";