Skip to content

Commit

Permalink
Fix Debian Release.key URL
Browse files Browse the repository at this point in the history
A space found its way into the URL between the dynamic part and
"Release.key" which breaks the generated URL for Debian users.

Fixes #650.
  • Loading branch information
agraul committed Sep 1, 2019
1 parent 3938166 commit 0f01739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/download/package.erb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pacman -S <%= repo_name %>/<%= @package %></pre>
when 'CentOS', 'RHEL', 'SL'
"cd /etc/yum.repos.d/\nwget #{v[:repo]}#{@project}.repo\nyum install #{@package}"
when 'Debian', 'Univention'
"echo 'deb #{v[:repo].gsub(/(\w):(\w)/, '\1:/\2').gsub(/^https/, 'http')} /' > /etc/apt/sources.list.d/#{@project}.list\nwget -nv #{v[:repo]} Release.key -O Release.key\napt-key add - < Release.key\napt-get update\napt-get install #{@package}"
"echo 'deb #{v[:repo].gsub(/(\w):(\w)/, '\1:/\2').gsub(/^https/, 'http')} /' > /etc/apt/sources.list.d/#{@project}.list\nwget -nv #{v[:repo]}Release.key -O Release.key\napt-key add - < Release.key\napt-get update\napt-get install #{@package}"
when 'Mageia', 'Mandriva'
version = k.split("_").last
if version == "Cauldron" or Integer(version) >= 6
Expand Down

0 comments on commit 0f01739

Please sign in to comment.