diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 18:58:53 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-12 18:58:53 +0100 |
| commit | 95912e10fb5ee698b99f338a6933a994b5c6d5a8 (patch) | |
| tree | 0b645651c7429da9ae2ed6af74c8beb1935f77a8 /lib/MiddleWare/MiddleWare.cpp | |
| parent | bccd32e8a752294bd11d930e2311ac4c64cfc43c (diff) | |
| download | abrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.tar.gz abrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.tar.xz abrt-95912e10fb5ee698b99f338a6933a994b5c6d5a8.zip | |
change pDebugDumpPath to pDebugDumpDir
Diffstat (limited to 'lib/MiddleWare/MiddleWare.cpp')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 91eff06..30092b4 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(); |
