EVENT=post-create analyzer=Python
# (For now this has no effect since python hook doesn't save environ)
if grep -q ^ABRT_IGNORE_ALL=1 environ \
|| grep -q ^ABRT_IGNORE_PYTHON=1 environ \
; then
echo "ABRT_IGNORE variable is 1 - not saving the crash"
# abrtd will delete the problem directory when we exit nonzero:
exit 1
fi
abrt-action-analyze-python
EVENT=report_Bugzilla analyzer=Python component!=anaconda
test -f component || abrt-action-save-package-data
reporter-bugzilla -b \
-c /etc/libreport/plugins/bugzilla.conf \
-F /etc/libreport/plugins/bugzilla_format.conf \
-A /etc/libreport/plugins/bugzilla_formatdup.conf
# Send micro report
EVENT=report_uReport analyzer=Python
/usr/libexec/abrt-action-ureport
# update ABRT database after successful report to bugzilla
EVENT=post_report analyzer=Python
reporter-ureport -A -B
exit 0
# Reporting of python exceptions
EVENT=report-gui analyzer=Python component!=anaconda
report-gtk -- "$DUMP_DIR"
EVENT=report-cli analyzer=Python component!=anaconda
report-cli -- "$DUMP_DIR"