From 95a2b74dc9a4b9de18b8e7e9c28c644bba876778 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 18 Mar 2011 13:35:40 +0100 Subject: Replace FILENAME_MESSAGE with FILENAME_REPORTED_TO. This fixes the problem with abrt-cli not showing unreported bugs and abrt-gui not showing "green lamp" for reported bugs. In general, it introduces a way to record reporting results, such as Bugzilla URL, in dump dir. In the future, this enables such functions as "check BZ status". Signed-off-by: Denys Vlasenko --- src/plugins/abrt-action-bugzilla.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/plugins/abrt-action-bugzilla.cpp') diff --git a/src/plugins/abrt-action-bugzilla.cpp b/src/plugins/abrt-action-bugzilla.cpp index b24d8c3a..79e83b3b 100644 --- a/src/plugins/abrt-action-bugzilla.cpp +++ b/src/plugins/abrt-action-bugzilla.cpp @@ -861,7 +861,7 @@ static void report_to_bugzilla( free(dsc); - bool is_priv = is_private && (is_private[0] == '1'); + bool is_priv = is_private && string_to_bool(is_private); if (bz_server.add_comment(bug_id, full_dsc, is_priv) == -1) { free(full_dsc); @@ -883,6 +883,15 @@ static void report_to_bugzilla( (int)bug_id ); + dd = dd_opendir(dump_dir_name, /*flags:*/ 0); + if (dd) + { + char *msg = xasprintf("Bugzilla: URL=%s/show_bug.cgi?id=%u", bugzilla_url, (int)bug_id); + add_reported_to(dd, msg); + free(msg); + dd_close(dd); + } + free_crash_data(crash_data); bug_info_destroy(&bz); } -- cgit