diff --git a/dnf.spec b/dnf.spec index b3b305296f..7bc90c5d3a 100644 --- a/dnf.spec +++ b/dnf.spec @@ -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" diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt index c781420550..27e3c8ed5e 100644 --- a/etc/CMakeLists.txt +++ b/etc/CMakeLists.txt @@ -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) diff --git a/etc/collect_dnf.conf b/etc/collect_dnf.conf deleted file mode 100644 index b99721b1e7..0000000000 --- a/etc/collect_dnf.conf +++ /dev/null @@ -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