spec: package /etc/dnf/usr_drift_protected_paths.d
This commit is contained in:
parent
f2843f8985
commit
d63e9f00eb
1
dnf.spec
1
dnf.spec
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
INSTALL(DIRECTORY DESTINATION ${SYSCONFDIR}/dnf/usr-drift-protected-paths.d)
|
Loading…
Reference in New Issue