diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-03-04 17:17:49 +0100 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-03-05 17:40:51 +0100 |
commit | 122cfd55e01c90ca4e5cc0ac083fc87404b8e95f (patch) | |
tree | 3501bf217be0f72c10dafa8c673905ded7ea9f67 /lib/Plugins | |
parent | 55a3ba357bb766b142e95d8e5efe5ac87d841cbe (diff) | |
download | abrt-122cfd55e01c90ca4e5cc0ac083fc87404b8e95f.tar.gz abrt-122cfd55e01c90ca4e5cc0ac083fc87404b8e95f.tar.xz abrt-122cfd55e01c90ca4e5cc0ac083fc87404b8e95f.zip |
add arch, package and release in comment
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index b3066d7c..92951203 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -682,7 +682,16 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, std::string description = make_description_reproduce_comment(pCrashData); if (!description.empty()) { - VERB3 log("Add new comment into bug(%d)", (int)bug_id); + const char* package = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_PACKAGE); + const char* release = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_RELEASE); + const char* arch = get_crash_data_item_content_or_NULL(pCrashData, FILENAME_ARCHITECTURE); + + description = ssprintf( "Package: %s\n" + "Architecture: %s\n" + "OS Release: %s\n" + "%s", package, arch, release, description.c_str() + ); + update_client(_("Add new comment into bug(%d)"), (int)bug_id); if (bz_server.add_comment(bug_id, description.c_str()) == -1) { |