Blame SOURCES/0017-Disable-dnf-playground-command.patch

9f4a6f
From 517f0093218e3c23097d7e7e3f3d65930059ef82 Mon Sep 17 00:00:00 2001
9f4a6f
From: Silvie Chlupova <sisi.chlupova@gmail.com>
9f4a6f
Date: Thu, 12 Aug 2021 16:24:56 +0200
9f4a6f
Subject: [PATCH] Disable dnf playground command
9f4a6f
9f4a6f
= changelog =
9f4a6f
msg: playground command doesn't work
9f4a6f
type: bugfix
9f4a6f
related: https://bugzilla.redhat.com/show_bug.cgi?id=1955907
9f4a6f
---
9f4a6f
 plugins/copr.py | 3 +++
9f4a6f
 1 file changed, 3 insertions(+)
9f4a6f
9f4a6f
diff --git a/plugins/copr.py b/plugins/copr.py
9f4a6f
index 235989b..e1e7018 100644
9f4a6f
--- a/plugins/copr.py
9f4a6f
+++ b/plugins/copr.py
9f4a6f
@@ -122,6 +122,8 @@ class CoprCommand(dnf.cli.Command):
9f4a6f
         parser.add_argument('arg', nargs='*')
9f4a6f
 
9f4a6f
     def configure(self):
9f4a6f
+        if self.cli.command.opts.command != "copr":
9f4a6f
+            return
9f4a6f
         copr_hub = None
9f4a6f
         copr_plugin_config = ConfigParser()
9f4a6f
         config_files = []
9f4a6f
@@ -680,6 +682,7 @@ class PlaygroundCommand(CoprCommand):
9f4a6f
                             choices=['enable', 'disable', 'upgrade'])
9f4a6f
 
9f4a6f
     def run(self):
9f4a6f
+        raise dnf.exceptions.Error("Playground is temporarily unsupported")
9f4a6f
         subcommand = self.opts.subcommand[0]
9f4a6f
         chroot = self._guess_chroot()
9f4a6f
         if subcommand == "enable":
9f4a6f
-- 
9f4a6f
2.36.1
9f4a6f