diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 13:38:50 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-02-08 13:38:50 +0100 |
commit | 94b1d40a72f55b787fa78a9398f47eb8514e0d21 (patch) | |
tree | 9e56bf0c03356571fae068345dbf637e5631ac08 /lib/Plugins/Bugzilla.cpp | |
parent | 42dd1794caf6de8d7e1e77ce7cafad80400d4175 (diff) | |
download | abrt-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/Plugins/Bugzilla.cpp')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 6 |
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"; |