Skip to content

Commit

Permalink
fix augeas pkg.url
Browse files Browse the repository at this point in the history
versions after 1.12.0 are only available from Github
  • Loading branch information
h0tw1r3 committed May 8, 2024
1 parent 45ab2a8 commit b2f5a5b
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 b2f5a5b

Please sign in to comment.