Looks good to me
On Fri, 2010-03-05 at 17:36 +0100, Nikola Pajkovsky wrote:
From 4be5be84a28e5381a6e17ce8725fc50b25af950c Mon Sep 17 00:00:00 2001
From: Nikola Pajkovsky npajkovs@redhat.com Date: Thu, 4 Mar 2010 17:17:49 +0100 Subject: [PATCH] add arch, package and release in comment
Signed-off-by: Nikola Pajkovsky npajkovs@redhat.com
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 6ec1f42..a34c349 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -677,7 +677,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) {
-- 1.6.6.1