summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-06-30 18:37:49 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2010-06-30 18:37:49 +0200
commitbff657e4dba9162d9132649e4172f1d17e12c4a7 (patch)
tree37025b61a3837ccb1264efde49d055077ec19264 /lib
parentce8711c03a095694efc9273789b92347ad633e57 (diff)
downloadabrt-bff657e4dba9162d9132649e4172f1d17e12c4a7.tar.gz
abrt-bff657e4dba9162d9132649e4172f1d17e12c4a7.tar.xz
abrt-bff657e4dba9162d9132649e4172f1d17e12c4a7.zip
add rating to python crashes
Diffstat (limited to 'lib')
-rw-r--r--lib/Plugins/Python.cpp8
-rw-r--r--lib/Plugins/Python.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/Plugins/Python.cpp b/lib/Plugins/Python.cpp
index 12cc47ef..fc3e41c5 100644
--- a/lib/Plugins/Python.cpp
+++ b/lib/Plugins/Python.cpp
@@ -82,6 +82,14 @@ string CAnalyzerPython::GetGlobalUUID(const char *pDebugDumpDir)
return GetLocalUUID(pDebugDumpDir);
}
+void CAnalyzerPython::CreateReport(const char *pDebugDumpDir, int force)
+{
+ CDebugDump dd;
+ dd.Open(pDebugDumpDir);
+ dd.SaveText(FILENAME_RATING, "4");
+ dd.Close();
+}
+
void CAnalyzerPython::Init()
{
}
diff --git a/lib/Plugins/Python.h b/lib/Plugins/Python.h
index 6de2cbbe..b7eebdad 100644
--- a/lib/Plugins/Python.h
+++ b/lib/Plugins/Python.h
@@ -28,7 +28,7 @@ class CAnalyzerPython : public CAnalyzer
public:
virtual std::string GetLocalUUID(const char *pDebugDumpDir);
virtual std::string GetGlobalUUID(const char *pDebugDumpDir);
- virtual void CreateReport(const char *pDebugDumpDir, int force) {}
+ virtual void CreateReport(const char *pDebugDumpDir, int force);
virtual void Init();
virtual void DeInit();
};