summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-12 18:58:53 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-12 18:58:53 +0100
commit95912e10fb5ee698b99f338a6933a994b5c6d5a8 (patch)
tree0b645651c7429da9ae2ed6af74c8beb1935f77a8 /lib
parentbccd32e8a752294bd11d930e2311ac4c64cfc43c (diff)
downloadabrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.tar.gz
abrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.tar.xz
abrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.zip
change pDebugDumpPath to pDebugDumpDir
Diffstat (limited to 'lib')
-rw-r--r--lib/MiddleWare/MiddleWare.cpp16
-rw-r--r--lib/MiddleWare/MiddleWare.h2
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp
index 91eff06d..30092b4c 100644
--- a/lib/MiddleWare/MiddleWare.cpp
+++ b/lib/MiddleWare/MiddleWare.cpp
@@ -217,7 +217,7 @@ void CMiddleWare::Report(const crash_report_t& pCrashReport)
database->DisConnect();
}
-int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo)
+int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpDir, crash_info_t& pCrashInfo)
{
CDatabase* database = m_pPluginManager->GetDatabase(m_sDatabase);
@@ -228,7 +228,7 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t&
std::string time;
CDebugDump dd;
- dd.Open(pDebugDumpPath);
+ dd.Open(pDebugDumpDir);
dd.LoadText(FILENAME_PACKAGE, package);
dd.LoadText(FILENAME_TIME, time);
@@ -236,7 +236,7 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t&
if (package == "" ||
m_setBlackList.find(package.substr(0, package.find("-"))) != m_setBlackList.end())
{
- dd.Delete(pDebugDumpPath);
+ dd.Delete(pDebugDumpDir);
return 0;
}
@@ -244,13 +244,13 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t&
{
std::string application;
dd.LoadText(FILENAME_APPLICATION, application);
- UUID = GetLocalUUIDApplication(application, pDebugDumpPath);
+ UUID = GetLocalUUIDApplication(application, pDebugDumpDir);
}
if (dd.Exist(FILENAME_LANGUAGE))
{
std::string language;
dd.LoadText(FILENAME_LANGUAGE, language);
- UUID = GetLocalUUIDLanguage(language, pDebugDumpPath);
+ UUID = GetLocalUUIDLanguage(language, pDebugDumpDir);
}
if (UUID == "")
{
@@ -262,18 +262,18 @@ int CMiddleWare::SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t&
database_row_t row;
database->Connect();
- database->Insert(UUID, UID, pDebugDumpPath, time);
+ database->Insert(UUID, UID, pDebugDumpDir, time);
row = database->GetUUIDData(UUID, UID);
database->DisConnect();
if (row.m_sReported == "1")
{
- dd.Delete(pDebugDumpPath);
+ dd.Delete(pDebugDumpDir);
return 0;
}
if (row.m_sCount != "1")
{
- dd.Delete(pDebugDumpPath);
+ dd.Delete(pDebugDumpDir);
}
dd.Close();
diff --git a/lib/MiddleWare/MiddleWare.h b/lib/MiddleWare/MiddleWare.h
index 71c85ef0..396a3644 100644
--- a/lib/MiddleWare/MiddleWare.h
+++ b/lib/MiddleWare/MiddleWare.h
@@ -98,7 +98,7 @@ class CMiddleWare
crash_report_t& pReport);
void Report(const crash_report_t& pReport);
- int SaveDebugDump(const std::string& pDebugDumpPath, crash_info_t& pCrashInfo);
+ int SaveDebugDump(const std::string& pDebugDumpDir, crash_info_t& pCrashInfo);
vector_crash_infos_t GetCrashInfos(const std::string& pUID);
};