spec: package /etc/dnf/usr_drift_protected_paths.d

This commit is contained in:
Evan Goode 2025-06-03 22:43:46 +00:00 committed by amatej
parent f2843f8985
commit d63e9f00eb
4 changed files with 4 additions and 1 deletions

View File

@ -318,6 +318,7 @@ fi
%dir %{pluginconfpath}
%if %{without dnf5_obsoletes_dnf}
%dir %{confdir}/protected.d
%dir %{confdir}/usr-drift-protected-paths.d
%dir %{confdir}/vars
%endif
%dir %{confdir}/aliases.d

View File

@ -262,7 +262,7 @@ class BaseCli(dnf.Base):
logger.info(nevra)
for protected_path in protected_paths:
logger.info(" %s" % protected_path)
raise CliError(_("Operation aborted."))
raise CliError(_("Operation aborted. Pass --setopt=usr_drift_protected_paths= to disable this check and proceed anyway."))
else:
# Not a bootc transaction.

View File

@ -1,3 +1,4 @@
INSTALL (FILES "dnf-strict.conf" "dnf.conf" "automatic.conf" DESTINATION ${SYSCONFDIR}/dnf)
ADD_SUBDIRECTORY (aliases.d)
ADD_SUBDIRECTORY (protected.d)
ADD_SUBDIRECTORY (usr-drift-protected-paths.d)

View File

@ -0,0 +1 @@
INSTALL(DIRECTORY DESTINATION ${SYSCONFDIR}/dnf/usr-drift-protected-paths.d)