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

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