Skip to content

Commit

Permalink
Merge pull request #1564 from voegelas/dnf5
Browse files Browse the repository at this point in the history
New dnf config-manager syntax
  • Loading branch information
hennevogel authored Dec 3, 2024
2 parents 012f2cb + ab9044e commit ebb920b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/download/package.erb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ pacman -Sy <%= repo_name %>/<%= @package %></pre>
"zypper addrepo #{v[:repo]}#{@project}.repo\nzypper refresh\nzypper install #{@package}"
when 'Fedora'
version = k.split("_").last
if version == "Rawhide" or Integer(version) >= 22
if version == "Rawhide" or Integer(version) >= 41
"dnf config-manager addrepo --from-repofile=#{v[:repo]}#{@project}.repo\ndnf install #{@package}"
elsif Integer(version) >= 22
"dnf config-manager --add-repo #{v[:repo]}#{@project}.repo\ndnf install #{@package}"
else
"cd /etc/yum.repos.d/\nwget #{v[:repo]}#{@project}.repo\nyum install #{@package}"
Expand Down

0 comments on commit ebb920b

Please sign in to comment.