Drop collect file for ABRT

It looks like that it is not required anymore

Resolve: https://issues.redhat.com/browse/RHEL-40382
This commit is contained in:
Jaroslav Mracek 2024-06-11 16:02:21 +02:00 committed by Petr Pisar
parent a8c77bb0d8
commit 78e2838c62
3 changed files with 0 additions and 27 deletions

View File

@ -103,7 +103,6 @@ Conflicts: python3-dnf-plugins-extras-common < %{conflicts_dnf_plugins_extr
%package data
Summary: Common data and configuration files for DNF
Requires: libreport-filesystem
%if %{with dnf5_obsoletes_dnf}
Requires: /etc/dnf/dnf.conf
%endif
@ -336,7 +335,6 @@ popd
%{_mandir}/man5/%{name}.conf.5*
%endif
%{_tmpfilesdir}/%{name}.conf
%{_sysconfdir}/libreport/events.d/collect_dnf.conf
%files -n %{yum_subpackage_name}
%if "%{yum_compat_level}" == "full"

View File

@ -1,4 +1,3 @@
INSTALL (FILES "collect_dnf.conf" DESTINATION ${SYSCONFDIR}/libreport/events.d/)
ADD_SUBDIRECTORY (bash_completion.d)
ADD_SUBDIRECTORY (dnf)
ADD_SUBDIRECTORY (logrotate.d)

View File

@ -1,24 +0,0 @@
EVENT=notify component=dnf
# there has to be a comment here, otherwise
# the next line is interpreted as a condition
function fetch()
{
for log in $*; do
new_name=${log//\//_}
cp $log $new_name
done
}
logs=`find /var/cache/dnf -iname '*.log'`
fetch $logs
fetch /var/log/dnf.log
# this would fail for a non-priviledged user
journalctl _SYSTEMD_UNIT=dnf-makecache.service &>dnf-makecache.log
fetch /var/log/dnf.transaction.log
if [[ -r username ]]; then
username=`cat username`
if [[ $username != "root" ]]; then
logs=`find /var/tmp -path "/var/tmp/dnf-${username}-*" -iname '*.log'`
fetch $logs
fi
fi