diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 19:04:42 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-09 19:04:42 +0200 |
commit | 39d77b6cfa633b94a31de5ec387949a7c7b85623 (patch) | |
tree | 37dbbb2f84ff2e8d524cdf8ece16401e8955d6dd /lib/Plugins/Python.cpp | |
parent | 08ec5a72cd334fffc8aa343ab48f4b6d1c88e3a7 (diff) | |
download | abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.tar.gz abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.tar.xz abrt-39d77b6cfa633b94a31de5ec387949a7c7b85623.zip |
fix the bug where lock file was not removed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Python.cpp')
-rw-r--r-- | lib/Plugins/Python.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/lib/Plugins/Python.cpp b/lib/Plugins/Python.cpp index c3677e7b..3e6926cd 100644 --- a/lib/Plugins/Python.cpp +++ b/lib/Plugins/Python.cpp @@ -9,21 +9,20 @@ std::string CAnalyzerPython::CreateHash(const std::string& pDebugDumpDir) { - std::string uuid; - CDebugDump dd; - dd.Open(pDebugDumpDir); - dd.LoadText("uuid", uuid); - dd.Close(); - return uuid; + std::string uuid; + CDebugDump dd; + dd.Open(pDebugDumpDir); + dd.LoadText("uuid", uuid); + return uuid; } std::string CAnalyzerPython::GetLocalUUID(const std::string& pDebugDumpDir) { - return CreateHash(pDebugDumpDir); + return CreateHash(pDebugDumpDir); } std::string CAnalyzerPython::GetGlobalUUID(const std::string& pDebugDumpDir) { - return GetLocalUUID(pDebugDumpDir); + return GetLocalUUID(pDebugDumpDir); } void CAnalyzerPython::Init() @@ -39,8 +38,8 @@ void CAnalyzerPython::Init() void CAnalyzerPython::DeInit() { - // TODO: remove copied abrt exception handler - std::ofstream fOutPySiteCustomize; + // TODO: remove copied abrt exception handler + std::ofstream fOutPySiteCustomize; fOutPySiteCustomize.open(PYHOOK_CONFIG); if (fOutPySiteCustomize.is_open()) { |