Blob Blame History Raw
EVENT=post-create type=Python remote!=1
        # (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
        # save Python2 package version
        for line in $(rpm -qf $(which $(cut -d' ' -f1 < cmdline)) 2>/dev/null); do
             echo -n $line > interpreter
        done

EVENT=report_Bugzilla type=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 type=Python
        /usr/libexec/abrt-action-ureport

# update ABRT database after successful report to bugzilla
EVENT=post_report type=Python
        reporter-ureport -A -B

# Reporting of python exceptions
EVENT=report-gui type=Python component!=anaconda
        report-gtk -- "$DUMP_DIR"

EVENT=report-cli type=Python component!=anaconda
        report-cli -- "$DUMP_DIR"

EVENT=report_systemd-journal type=Python
        reporter-systemd-journal --message-id b25955d7738d4db9a498a734620194ef \
                                  -F /etc/libreport/plugins/catalog_python_format.conf