Blame SOURCES/0016-Fix-dnf-copr-enable-on-Fedora-35.patch

92f559
From 76d7c9e2d2fa052cc6d9fab08af51c603d7e20e5 Mon Sep 17 00:00:00 2001
92f559
From: Pavel Raiskup <praiskup@redhat.com>
92f559
Date: Fri, 16 Jul 2021 12:52:03 +0200
92f559
Subject: [PATCH] Fix 'dnf copr enable' on Fedora 35
92f559
92f559
The output from linux_distribution() changed so it returns:
92f559
>>> distro.linux_distribution()
92f559
('Fedora Linux', '35', '')
92f559
---
92f559
 plugins/copr.py | 2 +-
92f559
 1 file changed, 1 insertion(+), 1 deletion(-)
92f559
92f559
diff --git a/plugins/copr.py b/plugins/copr.py
92f559
index 7fc6c6f..235989b 100644
92f559
--- a/plugins/copr.py
92f559
+++ b/plugins/copr.py
92f559
@@ -430,7 +430,7 @@ Bugzilla. In case of problems, contact the owner of this repository.
92f559
             dist = linux_distribution()
92f559
         # Get distribution architecture
92f559
         distarch = self.base.conf.substitutions['basearch']
92f559
-        if "Fedora" in dist:
92f559
+        if any([name in dist for name in ["Fedora", "Fedora Linux"]]):
92f559
             if "Rawhide" in dist:
92f559
                 chroot = ("fedora-rawhide-" + distarch)
92f559
             # workaround for enabling repos in Rawhide when VERSION in os-release
92f559
-- 
92f559
2.36.1
92f559