bigtop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject bigtop git commit: BIGTOP-3031: correct script to find lasted mvn version
Date Thu, 28 Jun 2018 02:58:07 GMT
Repository: bigtop
Updated Branches:
  refs/heads/master 2c3490cc3 -> 9b9304abd


BIGTOP-3031: correct script to find lasted mvn version

This closes #369

Signed-off-by: Jun He <junhe@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/9b9304ab
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/9b9304ab
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/9b9304ab

Branch: refs/heads/master
Commit: 9b9304abdd3025b41dd7e934cdff4534967a3391
Parents: 2c3490c
Author: Artem Eluferev <deart2@yandex.ru>
Authored: Mon Jun 25 14:43:26 2018 +0300
Committer: Jun He <junhe@apache.org>
Committed: Thu Jun 28 02:56:40 2018 +0000

----------------------------------------------------------------------
 .../lib/puppet/parser/functions/latest_maven_binary.rb             | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/bigtop/blob/9b9304ab/bigtop_toolchain/lib/puppet/parser/functions/latest_maven_binary.rb
----------------------------------------------------------------------
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 5aaffac..ceeb959 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 --stderr /dev/null 'https://www.apache.org/dist/maven/maven-3/?F=0&V=1'
| grep -o '<li>.*href="#{versionmask}/"' | grep -o '#{versionmask}').chomp
+        %x(curl --stderr /dev/null 'https://www.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


Mime
View raw message