Signed-off-by: Jakub Filak <[email protected]>
---
 abrt.spec.in                   | 1 +
 po/POTFILES.in                 | 1 +
 src/plugins/Makefile.am        | 6 ++++--
 src/plugins/ccpp_event.conf    | 6 +++++-
 src/plugins/koops_event.conf   | 6 +++++-
 src/plugins/post_report.xml.in | 8 ++++++++
 src/plugins/python_event.conf  | 6 +++++-
 7 files changed, 29 insertions(+), 5 deletions(-)
 create mode 100644 src/plugins/post_report.xml.in

diff --git a/abrt.spec.in b/abrt.spec.in
index 29c561f..fd71204 100644
--- a/abrt.spec.in
+++ b/abrt.spec.in
@@ -546,6 +546,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null 
|| :
 %{_sysconfdir}/libreport/events/collect_GConf.xml
 %{_sysconfdir}/libreport/events/collect_vimrc_user.xml
 %{_sysconfdir}/libreport/events/collect_vimrc_system.xml
+%{_sysconfdir}/libreport/events/post_report.xml
 %{_mandir}/man*/abrt-action-analyze-c.*
 %{_mandir}/man*/abrt-action-trim-files.*
 %{_mandir}/man*/abrt-action-generate-backtrace.*
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0b8176c..3bd7a1b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -40,4 +40,5 @@ src/plugins/collect_GConf.xml.in
 src/plugins/collect_Smolt.xml.in
 src/plugins/collect_vimrc_system.xml.in
 src/plugins/collect_vimrc_user.xml.in
+src/plugins/post_report.xml.in
 
diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
index 0f8a4d4..10ab579 100644
--- a/src/plugins/Makefile.am
+++ b/src/plugins/Makefile.am
@@ -35,7 +35,8 @@ dist_events_DATA = \
     collect_Smolt.xml \
     collect_GConf.xml \
     collect_vimrc_user.xml \
-    collect_vimrc_system.xml
+    collect_vimrc_system.xml \
+    post_report.xml
 
 @INTLTOOL_XML_RULE@
 
@@ -71,7 +72,8 @@ EXTRA_DIST = \
     analyze_RetraceServer.xml.in \
     analyze_VMcore.xml.in \
     abrt-action-analyze-vmcore \
-    https-utils.h
+    https-utils.h \
+    post_report.xml.in
 
 abrt_watch_log_SOURCES = \
     abrt-watch-log.c
diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf
index 1667ff8..81b14d2 100644
--- a/src/plugins/ccpp_event.conf
+++ b/src/plugins/ccpp_event.conf
@@ -52,6 +52,10 @@ EVENT=report_Bugzilla analyzer=CCpp duphash!=
 EVENT=report_uReport analyzer=CCpp
         reporter-ureport
 
+# update ABRT database after successful report to bugzilla
+EVENT=post_report analyzer=CCpp
+        reporter-ureport -r
+
 # Reporting of C/Cpp problems
 EVENT=report-gui analyzer=CCpp
-        report-gtk -e report_uReport -e analyze_RetraceServer -e 
report_Bugzilla -- "$DUMP_DIR"
+        report-gtk -e report_uReport -e analyze_RetraceServer -e 
report_Bugzilla -e post_report -- "$DUMP_DIR"
diff --git a/src/plugins/koops_event.conf b/src/plugins/koops_event.conf
index 4d75110..91759b1 100644
--- a/src/plugins/koops_event.conf
+++ b/src/plugins/koops_event.conf
@@ -22,6 +22,10 @@ EVENT=report_Bugzilla analyzer=Kerneloops
 EVENT=report_uReport analyzer=Kerneloops
         reporter-ureport
 
+# update ABRT database after successful report to bugzilla
+EVENT=post_report analyzer=Kerneloops
+        reporter-ureport -r
+
 # Reporting of kernel oopses
 EVENT=report-gui analyzer=Kerneloops
-        report-gtk -e report_uReport -e report_Bugzilla -- "$DUMP_DIR"
+        report-gtk -e report_uReport -e report_Bugzilla -e post_report -- 
"$DUMP_DIR"
diff --git a/src/plugins/post_report.xml.in b/src/plugins/post_report.xml.in
new file mode 100644
index 0000000..6f13b2e
--- /dev/null
+++ b/src/plugins/post_report.xml.in
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<event>
+    <_name>Post report</_name>
+    <_description>Executed after the reporting is finished</_description>
+    <_long-description>Used for updating of the databases</_long-description>
+    <requires-items>reported_to</requires-items>
+    <gui-review-elements>no</gui-review-elements>
+</event>
diff --git a/src/plugins/python_event.conf b/src/plugins/python_event.conf
index a7c72ac..e60df11 100644
--- a/src/plugins/python_event.conf
+++ b/src/plugins/python_event.conf
@@ -10,6 +10,10 @@ EVENT=report_Bugzilla analyzer=Python
 EVENT=report_uReport analyzer=Python
         reporter-ureport
 
+# update ABRT database after successful report to bugzilla
+EVENT=post_report analyzer=Python
+        reporter-ureport -r
+
 # Reporting of python exceptions
 EVENT=report-gui analyzer=Python
-        report-gtk -e report_uReport -e report_Bugzilla -- "$DUMP_DIR"
+        report-gtk -e report_uReport -e report_Bugzilla -e post_report -- 
"$DUMP_DIR"
-- 
1.7.11.4

Reply via email to