diff options
author | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-07-07 12:18:50 +0200 |
---|---|---|
committer | Nikola Pajkovsky <npajkovs@redhat.com> | 2010-07-08 10:15:13 +0200 |
commit | 1da34febe962e8dad2dc0130426309d5545adf0a (patch) | |
tree | 28abcf45ce2b44d243cad5ace460048ff2d03e22 /lib/Plugins | |
parent | c1182a6f3beb37fc777a9cdbd301887087d858a6 (diff) | |
download | abrt-1da34febe962e8dad2dc0130426309d5545adf0a.tar.gz abrt-1da34febe962e8dad2dc0130426309d5545adf0a.tar.xz abrt-1da34febe962e8dad2dc0130426309d5545adf0a.zip |
fedora bugs should not depend on rhel bugs
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index cde1712e..f267b983 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -692,7 +692,16 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, update_client(_("Checking for duplicates...")); - xmlrpc_value *result = bz_server.call_quicksearch_duphash(component.c_str(), NULL, duphash.c_str()); + char *product = NULL; + char *version = NULL; + parse_release(release, &product, &version); + + xmlrpc_value *result; + if (strcmp(product, "Fedora") == 0) + result = bz_server.call_quicksearch_duphash(component.c_str(), product, duphash.c_str()); + else + result = bz_server.call_quicksearch_duphash(component.c_str(), NULL, duphash.c_str()); + if (!result) throw_if_xml_fault_occurred(&bz_server.env); @@ -708,8 +717,6 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, int all_bugs_size = bz_server.get_array_size(all_bugs); struct bug_info bz; int depend_on_bugno = -1; - char *product = NULL; - char *version = NULL; if (all_bugs_size > 0) { bug_id = bz_server.get_bug_id(all_bugs); @@ -725,7 +732,6 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, throw CABRTException(EXCEP_PLUGIN, _("get_bug_info() failed. Could not collect all mandatory information")); } - parse_release(release, &product, &version); if (strcmp(bz.bug_product, product) != 0) { depend_on_bugno = bug_id; |