Skip to content

Commit d2489f3

Browse files
committed
Fix
1 parent 3f80071 commit d2489f3

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

dev/create-release/release-build.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,14 @@ if [[ "$1" == "package" ]]; then
176176
# Source and binary tarballs
177177
echo "Packaging release source tarballs"
178178
cp -r spark spark-$SPARK_VERSION
179-
# For source release, exclude copy of binary license/notice
180-
rm spark-$SPARK_VERSION/LICENSE-binary
181-
rm spark-$SPARK_VERSION/NOTICE-binary
182-
rm -r spark-$SPARK_VERSION/licenses-binary
179+
180+
# For source release in v2.4+, exclude copy of binary license/notice
181+
if [[ $SPARK_VERSION > "2.4" ]]; then
182+
rm spark-$SPARK_VERSION/LICENSE-binary
183+
rm spark-$SPARK_VERSION/NOTICE-binary
184+
rm -r spark-$SPARK_VERSION/licenses-binary
185+
fi
186+
183187
tar cvzf spark-$SPARK_VERSION.tgz spark-$SPARK_VERSION
184188
echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --armour --output spark-$SPARK_VERSION.tgz.asc \
185189
--detach-sig spark-$SPARK_VERSION.tgz

0 commit comments

Comments
 (0)