From 3b1dd4985ac7e32a3a1a498214bd26df29089dbc Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 1 Nov 2010 18:47:50 +0100 Subject: introduce abrt_action.conf; use it for post-create step This patch replaces only the post-create step with new logic (the step which happens when abrtd detects fresh crash dump dir and needs to decide what to do with it), but it turns out this step is one of hard ones: it needs special handling of UUID. So a good chunk of hard-ish stuff is already in this patch. It also contains logic to collect the log from actions, even though so far it is simply logged. Other steps (like reporting step) will pipe it to clients. post-create step simply has no client to pipe output to. But the code is there already. GetLocalUUID() members in all plugins are unused now and are deleted from all classes. Next patches will move run_event() function into libABRT, so that it can be used from e.g. abrt-handle-crashdump utility if/when we will write it, from clients directly and so on. For now, it lives in MiddleWare.cpp since it is only used there. Signed-off-by: Denys Vlasenko --- lib/plugins/Python.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/plugins/Python.cpp') diff --git a/lib/plugins/Python.cpp b/lib/plugins/Python.cpp index eae1cdf1..9d625a1c 100644 --- a/lib/plugins/Python.cpp +++ b/lib/plugins/Python.cpp @@ -69,11 +69,6 @@ static string load(const char *dirname, const char *filename) return ret; } -string CAnalyzerPython::GetLocalUUID(const char *pDebugDumpDir) -{ - return load(pDebugDumpDir, CD_UUID); -} - string CAnalyzerPython::GetGlobalUUID(const char *pDebugDumpDir) { return load(pDebugDumpDir, FILENAME_DUPHASH); -- cgit