Skip to content

Commit

Permalink
Show which release candidate gets downloaded and fix annoying error-m…
Browse files Browse the repository at this point in the history
…essage when packaging l10n-tarballs
  • Loading branch information
Martin Sirringhaus committed Feb 14, 2023
1 parent 7335408 commit 2118d79
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions create-tar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function check_tarball_source () {
local CANDIDATE_TARBALL_LOCATION=""
CANDIDATE_TARBALL_LOCATION="$(printf "%s/%s/source/%s" "$(get_ftp_candidates_url "$PRODUCT" "$VERSION$VERSION_SUFFIX")" "$BUILD_ID" "$TARBALL" )"
if wget --spider "$CANDIDATE_TARBALL_LOCATION" 2> /dev/null; then
echo "Download UNRELEASED candidate"
echo "Download UNRELEASED candidate ($BUILD_ID)"
else
echo "Mercurial checkout"
fi
Expand Down Expand Up @@ -501,13 +501,11 @@ function clone_and_repackage_locales() {
esac
done
echo "creating l10n archive..."
local TAR_FLAGS="--exclude=.hgtags --exclude=.hgignore --exclude=.hg"
if [ "$PRODUCT" = "thunderbird" ]; then
TB_TAR_FLAGS="--exclude=suite"
TAR_FLAGS="$TAR_FLAGS --exclude=suite"
fi
tar "$compression" -cf "l10n-$VERSION$VERSION_SUFFIX.tar.xz" \
--exclude=.hgtags --exclude=.hgignore --exclude=.hg \
"$TB_TAR_FLAGS" \
"$FINAL_L10N_BASE"
tar "$compression" -cf "l10n-$VERSION$VERSION_SUFFIX.tar.xz" "$TAR_FLAGS" "$FINAL_L10N_BASE"
}

function clean_up_old_tarballs() {
Expand Down

0 comments on commit 2118d79

Please sign in to comment.