Skip to content

Commit b2f5a5b

Browse files
committed
fix augeas pkg.url
versions after 1.12.0 are only available from Github
1 parent 45ab2a8 commit b2f5a5b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

configs/components/augeas.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@
1515
raise "augeas version #{version} has not been configured; Cannot continue."
1616
end
1717

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

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

0 commit comments

Comments
 (0)