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

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