diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-02-08 18:06:51 +0100 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-02-08 18:24:31 +0100 |
commit | 1bf37ad93e87f065347fdb7224578d55cca8d384 (patch) | |
tree | 1ee45908c6f98cc8b2eda792d325e1f294992a7c /lib/Utils/make_descr.cpp | |
parent | ed333008ad25e2ca4d590cf2052337ef6cf1af71 (diff) | |
download | abrt-1bf37ad93e87f065347fdb7224578d55cca8d384.tar.gz abrt-1bf37ad93e87f065347fdb7224578d55cca8d384.tar.xz abrt-1bf37ad93e87f065347fdb7224578d55cca8d384.zip |
new bugzilla insides, add comment and reproduce when it's filled and not CLOSED, hopping when bug is CLOSED as DUPLICATE
Diffstat (limited to 'lib/Utils/make_descr.cpp')
-rw-r--r-- | lib/Utils/make_descr.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/Utils/make_descr.cpp b/lib/Utils/make_descr.cpp index c2821a5f..e6ea2de0 100644 --- a/lib/Utils/make_descr.cpp +++ b/lib/Utils/make_descr.cpp @@ -193,6 +193,38 @@ string make_description_logger(const map_crash_data_t& pCrashData) return description; } +string make_description_reproduce_comment(const map_crash_data_t& pCrashData) +{ + map_crash_data_t::const_iterator end = pCrashData.end(); + map_crash_data_t::const_iterator it; + + string howToReproduce; + it = pCrashData.find(FILENAME_REPRODUCE); + if (it != end) + { + VERB3 log("make_description_reproduce_comment %s", it->second[CD_CONTENT].c_str()); + if ((it->second[CD_CONTENT].size() > 0) + && (it->second[CD_CONTENT] != "1.\n2.\n3.\n")) + { + howToReproduce = "\n\nHow to reproduce\n" + "-----\n"; + howToReproduce += it->second[CD_CONTENT]; + } + } + string comment; + it = pCrashData.find(FILENAME_COMMENT); + if (it != end) + { + if (it->second[CD_CONTENT].size() > 0) + { + comment = "\n\nComment\n" + "-----\n"; + comment += it->second[CD_CONTENT]; + } + } + return howToReproduce + comment; +} + /* This needs more work to make the result less ugly */ string make_description_catcut(const map_crash_data_t& pCrashData) { |