X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=c0813c93f5592939e28ce1eb927ca9c6b943ccb6;hb=b2b9a31b9adfdd251590eb1bfb72c95d5538e392;hp=3a09451a1546b062a8ebb6545eabd0577cd12aed;hpb=1c11bb86bf5ae74dd41f0d23193e955f806109ad;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 3a09451..c0813c9 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -22,7 +22,7 @@ then locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e') echo "retrieve translated Descs $dist/$part/$lang ($locale)" (cd us/${dist}/${part}/i18n && - $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz) + $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.bz2) done done done @@ -35,10 +35,13 @@ else test -d us/${dist}/${part}/i18n || mkdir -p us/${dist}/${part}/i18n for lang in $ddtplangs do - echo retrieve translated Descs $dist/$part/$lang - rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$lang.gz \ - us/${dist}/${part}/i18n/Translation-$lang.gz + locale=$(echo $lang|perl -p -e 's/^([a-z]{2})-([a-z]{2})$/"$1_".uc($2)/e') + echo "retrieve translated Descs $dist/$part/$lang ($locale)" + rsync -t ${localdir}/dists/${dist}/${part}/i18n/Translation-$locale.bz2 \ + us/${dist}/${part}/i18n/Translation-$locale.bz2 done done done fi + +exit 0