This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new e32423c44 BIGTOP-4544. bigtop_toolchain: latest ant/maven versions not 
resolved due to HTML-escaped "&" (#1404)
e32423c44 is described below

commit e32423c444a9311b802946d5b695767a9b921e1e
Author: KwonByungchang <[email protected]>
AuthorDate: Fri Jul 17 21:41:02 2026 +0900

    BIGTOP-4544. bigtop_toolchain: latest ant/maven versions not resolved due 
to HTML-escaped "&amp;" (#1404)
---
 bigtop_toolchain/lib/puppet/parser/functions/latest_ant_binary.rb   | 2 +-
 bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bigtop_toolchain/lib/puppet/parser/functions/latest_ant_binary.rb 
b/bigtop_toolchain/lib/puppet/parser/functions/latest_ant_binary.rb
index 79ff59375..c7f51a412 100644
--- a/bigtop_toolchain/lib/puppet/parser/functions/latest_ant_binary.rb
+++ b/bigtop_toolchain/lib/puppet/parser/functions/latest_ant_binary.rb
@@ -17,6 +17,6 @@ module Puppet::Parser::Functions
     newfunction(:latest_ant_binary, :type => :rvalue) do |args|
         versionmask=args[0]
         # We are using main mirror here because can't be sure about Apache 
Server config on every mirror. It could be Nginx, btw. 
-        %x(curl -L --stderr /dev/null 
'https://archive.apache.org/dist/ant/binaries/?F=0&amp;V=1' | grep -o 
'<li>.*href="apache-ant-#{versionmask}-bin.tar.gz"'  |  grep -o 
"apache-ant-#{versionmask}" | tail -1 | tr -d '\r').chomp
+        %x(curl -L --stderr /dev/null 
'https://archive.apache.org/dist/ant/binaries/?F=0&V=1' | grep -o 
'<li>.*href="apache-ant-#{versionmask}-bin.tar.gz"'  |  grep -o 
"apache-ant-#{versionmask}" | tail -1 | tr -d '\r').chomp
     end
 end
diff --git 
a/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb 
b/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb
index f89b5ef89..11a7f0105 100644
--- a/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb
+++ b/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb
@@ -17,6 +17,6 @@ module Puppet::Parser::Functions
     newfunction(:latest_maven_binary, :type => :rvalue) do |args|
         versionmask=args[0]
         # We are using main mirror here because can't be sure about Apache 
Server config on every mirror. It could be Nginx, btw.
-        %x(curl -L --stderr /dev/null 
'https://archive.apache.org/dist/maven/maven-3/?F=0&amp;V=1' | grep -o 
'<li>.*href="#{versionmask}/"' | tail -1 | grep -o '#{versionmask}'| tr -d 
'\r').chomp
+        %x(curl -L --stderr /dev/null 
'https://archive.apache.org/dist/maven/maven-3/?F=0&V=1' | grep -o 
'<li>.*href="#{versionmask}/"' | tail -1 | grep -o '#{versionmask}'| tr -d 
'\r').chomp
     end
 end

Reply via email to