From c70b4c8a78814bcea4f8a80d9a2cbff5adc4316b Mon Sep 17 00:00:00 2001 From: Felix Rubio Date: Sat, 26 Oct 2024 17:22:03 +0200 Subject: [PATCH] disabled hard check for root user --- dnf/cli/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dnf/cli/cli.py b/dnf/cli/cli.py index d3844df344..4c4a731f84 100644 --- a/dnf/cli/cli.py +++ b/dnf/cli/cli.py @@ -727,9 +727,8 @@ def _process_demands(self): if demands.root_user: if not dnf.util.am_i_root(): - raise dnf.exceptions.Error( - _('This command has to be run with superuser privileges ' - '(under the root user on most systems).')) + logger.warning('In most cases, this command has to be run with superuser privileges ' + '(usually under the root user)') if demands.changelogs: for repo in repos.iter_enabled():