spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From van...@apache.org
Subject spark git commit: [SPARK-23601][BUILD][FOLLOW-UP] Keep md5 checksums for nexus artifacts.
Date Wed, 16 May 2018 20:35:10 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-2.3 e16ab6fe0 -> d4a892af5


[SPARK-23601][BUILD][FOLLOW-UP] Keep md5 checksums for nexus artifacts.

The repository.apache.org server still requires md5 checksums or
it won't publish the staging repo.

Author: Marcelo Vanzin <vanzin@cloudera.com>

Closes #21338 from vanzin/SPARK-23601.

(cherry picked from commit 8e60a16b73490007fe1c480d77cc09d760f0a02b)
Signed-off-by: Marcelo Vanzin <vanzin@cloudera.com>


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

Branch: refs/heads/branch-2.3
Commit: d4a892af53266098affa9cd444e8e3b639dfc851
Parents: e16ab6f
Author: Marcelo Vanzin <vanzin@cloudera.com>
Authored: Wed May 16 13:34:54 2018 -0700
Committer: Marcelo Vanzin <vanzin@cloudera.com>
Committed: Wed May 16 13:35:04 2018 -0700

----------------------------------------------------------------------
 dev/create-release/release-build.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/d4a892af/dev/create-release/release-build.sh
----------------------------------------------------------------------
diff --git a/dev/create-release/release-build.sh b/dev/create-release/release-build.sh
index c00b00b..5faa3d3 100755
--- a/dev/create-release/release-build.sh
+++ b/dev/create-release/release-build.sh
@@ -371,11 +371,18 @@ if [[ "$1" == "publish-release" ]]; then
   find . -type f |grep -v \.jar |grep -v \.pom | xargs rm
 
   echo "Creating hash and signature files"
-  # this must have .asc and .sha1 - it really doesn't like anything else there
+  # this must have .asc, .md5 and .sha1 - it really doesn't like anything else there
   for file in $(find . -type f)
   do
     echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --output $file.asc \
       --detach-sig --armour $file;
+    if [ $(command -v md5) ]; then
+      # Available on OS X; -q to keep only hash
+      md5 -q $file > $file.md5
+    else
+      # Available on Linux; cut to keep only hash
+      md5sum $file | cut -f1 -d' ' > $file.md5
+    fi
     sha1sum $file | cut -f1 -d' ' > $file.sha1
   done
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message