Ticket #7589: hta_committer.diff
File hta_committer.diff, 1.4 KB (added by , 13 years ago) |
---|
-
src/tools/hta_committer.sh
115 115 116 116 DownloadLanguageTarball() 117 117 { 118 LANGUAGE=$1 119 # The package for zh_hans catalogs is actually called zh-hans 120 if [ "$LANGUAGE" = "zh_hans" ] ; then 121 LANGUAGE="zh-hans" 122 fi 123 118 124 cd "$tempDirectory" 119 echo "Downloading language: $ 1"125 echo "Downloading language: $LANGUAGE" 120 126 121 if [ -e "$ 1.tgz" ] ; then122 rm "$ 1.tgz"127 if [ -e "$LANGUAGE.tgz" ] ; then 128 rm "$LANGUAGE.tgz" 123 129 fi 124 130 125 131 attempt=0 126 132 local tarballURL="http://hta.polytect.org/catalogs/tarball" 127 133 128 while [ $(wget -nv -U hta_committer -O "$ 1.tgz" "$tarballURL/$1" ; echo $?) -ne 0 ]; do134 while [ $(wget -nv -U hta_committer -O "$LANGUAGE.tgz" "$tarballURL/$LANGUAGE" ; echo $?) -ne 0 ]; do 129 135 if [ $attempt -eq 5 ]; then 130 136 break 131 137 fi 132 138 (( attempt++ )) 133 139 echo "Download attempt #$attempt failed. Retrying ..." 134 if [ -e "$ 1" ]; then135 rm "$ 1"140 if [ -e "$LANGUAGE" ]; then 141 rm "$LANGUAGE" 136 142 fi 137 143 done 138 144 if [ $attempt -ge 5 ]; then 139 if [ -e "$ 1" ]; then140 rm "$ 1"145 if [ -e "$LANGUAGE" ]; then 146 rm "$LANGUAGE" 141 147 fi 142 echo "WARNING: Max download retries exceeded for language $ 1."148 echo "WARNING: Max download retries exceeded for language $LANGUAGE." 143 149 fi 144 150 145 151 cd "$subversionRootDirectory"