Skip to content

Commit

Permalink
Merge pull request #5922 from elkoniu/rpm-linter-fixes
Browse files Browse the repository at this point in the history
infra: Fix rpmlint conffile-without-noreplace-flag warning
  • Loading branch information
KKoukiou authored Oct 10, 2024
2 parents f2da1e1 + 36b58ce commit db8cf11
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions anaconda.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -426,12 +426,15 @@ rm -rf \
%exclude %{python3_sitearch}/pyanaconda/ui/gui/*
%exclude %{python3_sitearch}/pyanaconda/ui/tui/*
%{_bindir}/anaconda-cleanup
# Installer configuration files aren’t updated post-installation,
# so the noreplace flag doesn't offer a practical benefit in this context.
# It is added to silence the rpmlint conffile-without-noreplace-flag warning.
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/*
%config(noreplace) %{_sysconfdir}/%{name}/*
%dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/*
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/*
%dir %{_sysconfdir}/%{name}/profile.d
%config %{_sysconfdir}/%{name}/profile.d/*
%config(noreplace) %{_sysconfdir}/%{name}/profile.d/*

%if %{with live}
# do not provide the live subpackage on RHEL
Expand Down

0 comments on commit db8cf11

Please sign in to comment.