Skip to content

Commit

Permalink
Add protection of yum package (RhBug:1639363)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mracek authored and m-blaha committed Mar 7, 2019
1 parent 3670558 commit 3ccabe3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dnf.spec
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,14 @@ ln -sr %{buildroot}%{confdir}/vars %{buildroot}%{_sysconfdir}/yum/vars
%{_mandir}/man8/yum.8*
%{_mandir}/man8/yum-shell.8*
%{_mandir}/man1/yum-aliases.1*
%config(noreplace) %{confdir}/protected.d/yum.conf
%else
%exclude %{_mandir}/man8/yum-shell.8*
%exclude %{_mandir}/man1/yum-aliases.1*
%exclude %{_sysconfdir}/yum/pluginconf.d
%exclude %{_sysconfdir}/yum/protected.d
%exclude %{_sysconfdir}/yum/vars
%exclude %{confdir}/protected.d/yum.conf
%endif

%if "%{yum_subpackage_name}" == "nextgen-yum4"
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" DESTINATION ${SYSCONFDIR}/dnf/protected.d)
INSTALL (FILES "dnf.conf" "yum.conf" DESTINATION ${SYSCONFDIR}/dnf/protected.d)
1 change: 1 addition & 0 deletions etc/dnf/protected.d/yum.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yum

0 comments on commit 3ccabe3

Please sign in to comment.