diff options
| author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-18 13:35:40 +0100 |
|---|---|---|
| committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-03-18 13:35:40 +0100 |
| commit | 95a2b74dc9a4b9de18b8e7e9c28c644bba876778 (patch) | |
| tree | 52f45b6467ec81d89da25571e31e48a9797c57c2 /src/plugins/abrt-action-bugzilla.cpp | |
| parent | cf9dc0c650065cd5cfc55394d9ee68c9d589e15a (diff) | |
| download | abrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.tar.gz abrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.tar.xz abrt-95a2b74dc9a4b9de18b8e7e9c28c644bba876778.zip | |
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 <dvlasenk@redhat.com>
Diffstat (limited to 'src/plugins/abrt-action-bugzilla.cpp')
| -rw-r--r-- | src/plugins/abrt-action-bugzilla.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
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); } |
