From 021aa5294866d66e22bf9adb76439e906a1fb193 Mon Sep 17 00:00:00 2001
From: Joel Challis <git@zvecr.com>
Date: Tue, 23 Jan 2024 10:02:03 +0000
Subject: [PATCH] Workaround for dfu-programmer on Fedora 39 (#22945)

---
 util/install/fedora.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/util/install/fedora.sh b/util/install/fedora.sh
index 03e05a42fece..d3bc90b17656 100755
--- a/util/install/fedora.sh
+++ b/util/install/fedora.sh
@@ -3,6 +3,11 @@
 _qmk_install() {
     echo "Installing dependencies"
 
+    . /etc/os-release
+    if [ "$VERSION_ID" == "39" ]; then
+        sudo dnf $SKIP_PROMPT copr enable erovia/dfu-programmer
+    fi
+
     # TODO: Check whether devel/headers packages are really needed
     sudo dnf $SKIP_PROMPT install \
         clang diffutils git gcc glibc-headers kernel-devel kernel-headers \