Skip to content

Commit

Permalink
[spec] Remove /etc/dnf/protected.d/dnf.conf
Browse files Browse the repository at this point in the history
Instead, hardcode the protection of dnf in libdnf. This way, DNF 5 will
be able to uninstall DNF 4.
  • Loading branch information
evan-goode committed Sep 20, 2023
1 parent 2d2047e commit 051fd22
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ popd
# If DNF5 does not obsolete DNF ownership of dnf.conf should be DNF's
%config(noreplace) %{confdir}/%{name}.conf
%endif
%config(noreplace) %{confdir}/protected.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%ghost %attr(644,-,-) %{_localstatedir}/log/hawkey.log
%ghost %attr(644,-,-) %{_localstatedir}/log/%{name}.log
Expand Down
2 changes: 1 addition & 1 deletion etc/dnf/protected.d/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
INSTALL (FILES "dnf.conf" "yum.conf" DESTINATION ${SYSCONFDIR}/dnf/protected.d)
INSTALL (FILES "yum.conf" DESTINATION ${SYSCONFDIR}/dnf/protected.d)
1 change: 0 additions & 1 deletion etc/dnf/protected.d/dnf.conf

This file was deleted.

0 comments on commit 051fd22

Please sign in to comment.