Blame SOURCES/0031-Hook-the-stack-trace-analysis-tool-in-post-create.patch

78a2f7
From 893b81cef9e397a068dbeea5841ca8e8cd6b2fb4 Mon Sep 17 00:00:00 2001
78a2f7
From: Jakub Filak <jfilak@redhat.com>
78a2f7
Date: Thu, 16 Jan 2014 21:01:28 +0100
78a2f7
Subject: [PATCH 31/39] Hook the stack trace analysis tool in post-create
78a2f7
78a2f7
Related to #29
78a2f7
Related to rhbz#1054737
78a2f7
---
78a2f7
 etc/java_event.conf | 4 +++-
78a2f7
 1 file changed, 3 insertions(+), 1 deletion(-)
78a2f7
78a2f7
diff --git a/etc/java_event.conf b/etc/java_event.conf
78a2f7
index 4610f0c..302cac0 100644
78a2f7
--- a/etc/java_event.conf
78a2f7
+++ b/etc/java_event.conf
78a2f7
@@ -13,8 +13,10 @@ EVENT=post-create type=Java
78a2f7
             printf '%s' "`sha1sum < "backtrace" | cut -d" " -f1`" > "uuid"
78a2f7
             cp uuid duphash
78a2f7
         else
78a2f7
-            echo "Cannot create 'duphas' nor 'uuid' because of missing 'backtrace' file"
78a2f7
+            echo "Cannot create neither 'duphas' nor 'uuid' because of missing 'backtrace' file"
78a2f7
+            exit 1
78a2f7
         fi
78a2f7
+        abrt-action-analyze-java -d $DUMP_DIR || exit 1
78a2f7
 
78a2f7
 # Create a bug in Bugzilla
78a2f7
 EVENT=report_Bugzilla type=Java
78a2f7
-- 
78a2f7
1.8.3.1
78a2f7