From b646ae4d713615e04f4acab4575fe5eff100f350 Mon Sep 17 00:00:00 2001 From: Nicola Sella Date: Tue, 15 Mar 2022 16:26:10 +0100 Subject: [PATCH] Fix remove when no repos are enabled (RhBz:2064341) msg: When no repositories are enabled, dnf group exits and does not remove an installed group. resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2064341 type: bugfix Conflict:NA Reference:https://github.com/rpm-software-management/dnf/commit/b646ae4d713615e04f4acab4575fe5eff100f350 --- dnf/cli/commands/group.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnf/cli/commands/group.py b/dnf/cli/commands/group.py index e25c9be..6de8baa 100644 --- a/dnf/cli/commands/group.py +++ b/dnf/cli/commands/group.py @@ -358,7 +358,8 @@ class GroupCommand(commands.Command): else: demands.available_repos = True - commands._checkEnabledRepo(self.base) + if cmd not in ('remove'): + commands._checkEnabledRepo(self.base) if cmd in ('install', 'upgrade'): commands._checkGPGKey(self.base, self.cli) -- 2.27.0