summaryrefslogtreecommitdiffstats
path: root/src/Daemon/MiddleWare.cpp
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-10-12 11:46:13 +0200
committerKarel Klic <kklic@redhat.com>2009-10-12 11:46:13 +0200
commita41deef57d58ddcce264900885d94df37d23bff4 (patch)
tree1b2975c952b3179dab1e09e4d3609fcfcf02d610 /src/Daemon/MiddleWare.cpp
parent691fd95d03763f803e499dba06c8caecb279427f (diff)
parentb88494a1bbfc8871642fe117d893f2970f543a1b (diff)
downloadabrt-a41deef57d58ddcce264900885d94df37d23bff4.tar.gz
abrt-a41deef57d58ddcce264900885d94df37d23bff4.tar.xz
abrt-a41deef57d58ddcce264900885d94df37d23bff4.zip
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Daemon/MiddleWare.cpp')
-rw-r--r--src/Daemon/MiddleWare.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Daemon/MiddleWare.cpp b/src/Daemon/MiddleWare.cpp
index b05dbb6a..05abc9b5 100644
--- a/src/Daemon/MiddleWare.cpp
+++ b/src/Daemon/MiddleWare.cpp
@@ -163,15 +163,17 @@ static std::string GetGlobalUUID(const std::string& pAnalyzer,
* @param pDebugDumpPath A debugdump dir containing all necessary data.
*/
static void CreateReport(const std::string& pAnalyzer,
- const std::string& pDebugDumpDir)
+ const std::string& pDebugDumpDir,
+ int force)
{
CAnalyzer* analyzer = g_pPluginManager->GetAnalyzer(pAnalyzer);
- analyzer->CreateReport(pDebugDumpDir);
+ analyzer->CreateReport(pDebugDumpDir, force);
}
mw_result_t CreateCrashReport(const std::string& pUUID,
- const std::string& pUID,
- map_crash_report_t& pCrashReport)
+ const std::string& pUID,
+ int force,
+ map_crash_report_t& pCrashReport)
{
VERB2 log("CreateCrashReport('%s','%s',result)", pUUID.c_str(), pUID.c_str());
@@ -185,7 +187,7 @@ mw_result_t CreateCrashReport(const std::string& pUUID,
}
if (pUUID == "" || row.m_sUUID != pUUID)
{
- warn_client("CreateCrashReport(): UUID '"+pUUID+"' is not in database.");
+ warn_client("CreateCrashReport(): UUID '"+pUUID+"' is not in database");
return MW_IN_DB_ERROR;
}
@@ -211,7 +213,7 @@ mw_result_t CreateCrashReport(const std::string& pUUID,
dd.Close();
VERB3 log(" CreateReport('%s')", analyzer.c_str());
- CreateReport(analyzer, row.m_sDebugDumpDir);
+ CreateReport(analyzer, row.m_sDebugDumpDir, force);
gUUID = GetGlobalUUID(analyzer, row.m_sDebugDumpDir);
VERB3 log(" GetGlobalUUID:'%s'", gUUID.c_str());