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

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