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

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