Blame SOURCES/0001-copr-Guess-EPEL-chroots-for-CentOS-Stream-RhBug-2058.patch

03662d
From 579ef1bb577807090a114378219a812ec26b724a Mon Sep 17 00:00:00 2001
03662d
From: Carl George <carl@george.computer>
03662d
Date: Mon, 27 Jun 2022 23:12:05 -0500
03662d
Subject: [PATCH] copr: Guess EPEL chroots for CentOS Stream (RhBug:2058471)
03662d
03662d
Packages built in epel-9 chroots are almost always compatible with
03662d
CentOS Stream 9.  Not having the copr plugin guess this chroot is
03662d
causing user friction.  Users are creating epel-9 chroots expecting them
03662d
to work for both CentOS Stream 9 and RHEL 9.  When they get reports
03662d
about `dnf copr enable` not working, they try to add a centos-stream-9
03662d
chroot, only to discover the dependencies they need from EPEL are not
03662d
available.
03662d
03662d
Instead of making the majority of CentOS Stream users include an
03662d
explicit chroot argument, let's reserve that workaround only for the
03662d
people that don't want their CentOS Stream systems picking the EPEL
03662d
chroot.
03662d
---
03662d
 plugins/copr.py | 2 --
03662d
 1 file changed, 2 deletions(-)
03662d
03662d
diff --git a/plugins/copr.py b/plugins/copr.py
03662d
index 297210b..16946b7 100644
03662d
--- a/plugins/copr.py
03662d
+++ b/plugins/copr.py
03662d
@@ -469,8 +469,6 @@ Bugzilla. In case of problems, contact the owner of this repository.
03662d
                 chroot = ("opensuse-tumbleweed-{}".format(distarch))
03662d
             else:
03662d
                 chroot = ("opensuse-leap-{0}-{1}".format(dist[1], distarch))
03662d
-        elif "CentOS Stream" in dist:
03662d
-            chroot = ("centos-stream-{0}-{1}".format(dist[1], distarch))
03662d
         else:
03662d
             chroot = ("epel-%s-x86_64" % dist[1].split(".", 1)[0])
03662d
         return chroot
03662d
-- 
03662d
2.36.1
03662d