srowen commented on a change in pull request #23538: [MINOR][BUILD] Remove 
binary license/notice files in a source release for branch-2.4+ only
URL: https://github.com/apache/spark/pull/23538#discussion_r247520255
 
 

 ##########
 File path: dev/create-release/release-build.sh
 ##########
 @@ -176,10 +176,14 @@ if [[ "$1" == "package" ]]; then
   # Source and binary tarballs
   echo "Packaging release source tarballs"
   cp -r spark spark-$SPARK_VERSION
-  # For source release, exclude copy of binary license/notice
-  rm spark-$SPARK_VERSION/LICENSE-binary
-  rm spark-$SPARK_VERSION/NOTICE-binary
-  rm -r spark-$SPARK_VERSION/licenses-binary
+
+  # For source release in v2.4+, exclude copy of binary license/notice
+  if [[ $SPARK_VERSION > "2.4" ]]; then
 
 Review comment:
   This seems OK, but do the `rm`s cause a problem? if they fail or print an 
error, add `-f`? But this is fine too.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to