Skip to content

Commit

Permalink
Merge pull request #845 from h0tw1r3/fix/augeas-source
Browse files Browse the repository at this point in the history
fix augeas pkg.url
  • Loading branch information
h0tw1r3 authored May 8, 2024
2 parents 5fdc24e + b2f5a5b commit cb55e96
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion configs/components/augeas.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@
raise "augeas version #{version} has not been configured; Cannot continue."
end

pkg.url "http://download.augeas.net/augeas-#{pkg.get_version}.tar.gz"
# releases from 1.13.0 onward are only available from github
if Gem::Version.new(pkg.get_version) < Gem::Version.new('1.13.0')
# this url may be removed once 1.12.0 is no longer supported
pkg.url "http://download.augeas.net/augeas-#{pkg.get_version}.tar.gz"
else
pkg.url "https://github.com/hercules-team/augeas/releases/download/release-#{pkg.get_version}/augeas-#{pkg.get_version}.tar.gz"
end

if ['1.12.0', '1.14.1'].include?(version)
if platform.is_el? || platform.is_fedora?
Expand Down

0 comments on commit cb55e96

Please sign in to comment.