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

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