Skip to content

Commit

Permalink
Host a copy of the Fedora repo file (#29)
Browse files Browse the repository at this point in the history
This uses the `Fedora_$releasever` variable so the user is always
pointed to the correct release repository for their Fedora version.

Confirmed working for: Fedora 39, 40, 41
Does not work: Rawhide (the URL request is lowercase, 
but OpenSUSE Build Service expects a capital 'R')

However, the command to add repo changed in Fedora 41, so we
will need to keep the two for now until Fedora 40 is obsolete.

Closes openrazer/openrazer#1981
  • Loading branch information
lah7 authored Nov 7, 2024
1 parent 62ae745 commit 34e545d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ instructions:
For Fedora 41 (and later), run the following:
sudo dnf config-manager addrepo --from-repofile=https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo
sudo dnf config-manager addrepo --from-repofile=https://openrazer.github.io/hardware:razer.repo
sudo dnf install openrazer-meta
Expand All @@ -134,7 +134,7 @@ instructions:
For Fedora 40 (and earlier), run the following:
sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/hardware:/razer/Fedora_$(rpm -E %fedora)/hardware:razer.repo
sudo dnf config-manager --add-repo https://openrazer.github.io/hardware:razer.repo
sudo dnf install openrazer-meta
Expand Down
10 changes: 10 additions & 0 deletions misc/hardware_razer.repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
permalink: /hardware:razer.repo
---
[hardware_razer]
name=Fedora $releasever - hardware:razer
type=rpm-md
baseurl=https://download.opensuse.org/repositories/hardware:/razer/Fedora_$releasever/
gpgcheck=1
gpgkey=https://download.opensuse.org/repositories/hardware:/razer/Fedora_$releasever/repodata/repomd.xml.key
enabled=1

0 comments on commit 34e545d

Please sign in to comment.