diff options
| author | Karel Klic <kklic@redhat.com> | 2009-10-12 11:46:13 +0200 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2009-10-12 11:46:13 +0200 |
| commit | a41deef57d58ddcce264900885d94df37d23bff4 (patch) | |
| tree | 1b2975c952b3179dab1e09e4d3609fcfcf02d610 /lib/Plugins/Bugzilla.cpp | |
| parent | 691fd95d03763f803e499dba06c8caecb279427f (diff) | |
| parent | b88494a1bbfc8871642fe117d893f2970f543a1b (diff) | |
| download | abrt-a41deef57d58ddcce264900885d94df37d23bff4.tar.gz abrt-a41deef57d58ddcce264900885d94df37d23bff4.tar.xz abrt-a41deef57d58ddcce264900885d94df37d23bff4.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/Bugzilla.cpp')
| -rw-r--r-- | lib/Plugins/Bugzilla.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index a3c70f0..48c5eb5 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -147,28 +147,6 @@ bool CReporterBugzilla::CheckCCAndReporter(const std::string& pBugId) return false; } -void CReporterBugzilla::AddPlusOneComment(const std::string& pBugId) -{ - xmlrpc_c::paramList paramList; - map_xmlrpc_params_t addCommentParams; - map_xmlrpc_params_t ret; - - addCommentParams["id"] = xmlrpc_c::value_int(atoi(pBugId.c_str())); - addCommentParams["comment"] = xmlrpc_c::value_string("+1"); - - paramList.add(xmlrpc_c::value_struct(addCommentParams)); - xmlrpc_c::rpcPtr rpc(new xmlrpc_c::rpc("Bug.add_comment", paramList)); - try - { - rpc->call(m_pXmlrpcClient, m_pCarriageParm); - } - catch (std::exception& e) - { - throw CABRTException(EXCEP_PLUGIN, std::string("CReporterBugzilla::AddPlusOneComment(): ") + e.what()); - } - ret = xmlrpc_c::value_struct(rpc->getResult()); -} - void CReporterBugzilla::AddPlusOneCC(const std::string& pBugId) { xmlrpc_c::paramList paramList; @@ -424,10 +402,9 @@ std::string CReporterBugzilla::Report(const map_crash_report_t& pCrashReport, co update_client(_("Logging into bugzilla...")); Login(); m_bLoggedIn = true; - update_client(_("Check CC and add coment +1...")); + update_client(_("Checking CC...")); if (!CheckCCAndReporter(bugId) && m_bLoggedIn) { - AddPlusOneComment(bugId); AddPlusOneCC(bugId); } DeleteXMLRPCClient(); |
