Blob Blame History Raw
From ef137f9665e9d39097eca53faf88bd4069fb4495 Mon Sep 17 00:00:00 2001
From: Jakub Filak <jfilak@redhat.com>
Date: Fri, 21 Nov 2014 07:21:48 +0100
Subject: [PATCH] Add uReport workflow

---
 po/POTFILES.in                        |  1 +
 src/workflows/Makefile.am             |  9 ++++++---
 src/workflows/report_ureport.conf     |  3 +++
 src/workflows/workflow_uReport.xml.in | 10 ++++++++++
 4 files changed, 20 insertions(+), 3 deletions(-)
 create mode 100644 src/workflows/report_ureport.conf
 create mode 100644 src/workflows/workflow_uReport.xml.in

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7ba080c..4a83d8e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -61,6 +61,7 @@ src/workflows/workflow_MailxCCpp.xml.in
 src/workflows/workflow_Mailx.xml.in
 src/workflows/workflow_UploadCCpp.xml.in
 src/workflows/workflow_Upload.xml.in
+src/workflows/workflow_uReport.xml.in
 src/workflows/workflow_RHELCCpp.xml.in
 src/workflows/workflow_RHELKerneloops.xml.in
 src/workflows/workflow_RHELPython.xml.in
diff --git a/src/workflows/Makefile.am b/src/workflows/Makefile.am
index 0fc1019..801f663 100644
--- a/src/workflows/Makefile.am
+++ b/src/workflows/Makefile.am
@@ -20,7 +20,8 @@ dist_workflows_DATA = \
     workflow_Upload.xml \
     workflow_UploadCCpp.xml \
     workflow_Logger.xml \
-    workflow_LoggerCCpp.xml
+    workflow_LoggerCCpp.xml \
+    workflow_uReport.xml
 
 if BUILD_BUGZILLA
 dist_workflows_DATA += \
@@ -44,7 +45,8 @@ dist_workflowsdef_DATA =\
     report_rhel.conf \
     report_mailx.conf \
     report_logger.conf \
-    report_uploader.conf
+    report_uploader.conf \
+    report_ureport.conf
 
 if BUILD_BUGZILLA
 dist_workflowsdef_DATA += \
@@ -74,7 +76,8 @@ EXTRA_DIST = \
     workflow_Upload.xml.in \
     workflow_UploadCCpp.xml.in \
     workflow_Logger.xml.in \
-    workflow_LoggerCCpp.xml.in
+    workflow_LoggerCCpp.xml.in \
+    workflow_uReport.xml.in
 
 
 if BUILD_BUGZILLA
diff --git a/src/workflows/report_ureport.conf b/src/workflows/report_ureport.conf
new file mode 100644
index 0000000..8d76d5a
--- /dev/null
+++ b/src/workflows/report_ureport.conf
@@ -0,0 +1,3 @@
+EVENT=workflow_uReport
+# this is just a meta event which consists of other events
+# the list is defined in the xml file
diff --git a/src/workflows/workflow_uReport.xml.in b/src/workflows/workflow_uReport.xml.in
new file mode 100644
index 0000000..4d2f3d9
--- /dev/null
+++ b/src/workflows/workflow_uReport.xml.in
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<workflow>
+    <_name>Submit anonymous crash static data</_name>
+    <_description>Sends a uReport to ABRT crash statistics server</_description>
+    <priority>0</priority>
+
+    <events>
+        <event>report_uReport</event>
+    </events>
+</workflow>
-- 
1.8.3.1