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

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