forked from rpms/dnf-plugins-core
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 5bc8e4aee27f2e265ad034060c790d881d0af28a Mon Sep 17 00:00:00 2001
|
|
From: Pavla Kratochvilova <pkratoch@redhat.com>
|
|
Date: Thu, 2 Jan 2020 14:39:09 +0100
|
|
Subject: [PATCH] [config-manager] Allow use of --set-enabled without arguments
|
|
(RhBug:1679213)
|
|
|
|
Since config-manager was enhanced to also modify repositories specified
|
|
by repoids in the --setopt option, it should no longer be required to
|
|
specify repoids as arguments for --set-enabled.
|
|
|
|
As a consequence, "config-manager --set-enabled" without any other
|
|
argument will exit with 0 and have no effect (same as "--set-disabled").
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1679213
|
|
---
|
|
plugins/config_manager.py | 5 -----
|
|
1 file changed, 5 deletions(-)
|
|
|
|
diff --git a/plugins/config_manager.py b/plugins/config_manager.py
|
|
index 4e03d642..bf238ea9 100644
|
|
--- a/plugins/config_manager.py
|
|
+++ b/plugins/config_manager.py
|
|
@@ -67,11 +67,6 @@ def configure(self):
|
|
|
|
def run(self):
|
|
"""Execute the util action here."""
|
|
-
|
|
- if self.opts.set_enabled and not self.opts.crepo:
|
|
- logger.error(_("Error: Trying to enable already enabled repos."))
|
|
- self.opts.set_enabled = False
|
|
-
|
|
if self.opts.add_repo:
|
|
self.add_repo()
|
|
else:
|