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

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