Skip to content

Commit d63e9f0

Browse files
evan-goodekontura
authored andcommitted
spec: package /etc/dnf/usr_drift_protected_paths.d
1 parent f2843f8 commit d63e9f0

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

dnf.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ fi
318318
%dir %{pluginconfpath}
319319
%if %{without dnf5_obsoletes_dnf}
320320
%dir %{confdir}/protected.d
321+
%dir %{confdir}/usr-drift-protected-paths.d
321322
%dir %{confdir}/vars
322323
%endif
323324
%dir %{confdir}/aliases.d

dnf/cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def do_transaction(self, display=()):
262262
logger.info(nevra)
263263
for protected_path in protected_paths:
264264
logger.info(" %s" % protected_path)
265-
raise CliError(_("Operation aborted."))
265+
raise CliError(_("Operation aborted. Pass --setopt=usr_drift_protected_paths= to disable this check and proceed anyway."))
266266

267267
else:
268268
# Not a bootc transaction.

etc/dnf/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
INSTALL (FILES "dnf-strict.conf" "dnf.conf" "automatic.conf" DESTINATION ${SYSCONFDIR}/dnf)
22
ADD_SUBDIRECTORY (aliases.d)
33
ADD_SUBDIRECTORY (protected.d)
4+
ADD_SUBDIRECTORY (usr-drift-protected-paths.d)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
INSTALL(DIRECTORY DESTINATION ${SYSCONFDIR}/dnf/usr-drift-protected-paths.d)

0 commit comments

Comments
 (0)