X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=705d7d097952d67ed5f8ffbcdb90f8245b454f75;hb=e88cc8fb37d6809017036b4f1e022cdb746a1fe1;hp=437aa921d9cdf0332ee99c8dc4a6eeba2c031a16;hpb=a3fd68e78cd0c1eb1dbff6b48accaca5b2b54637;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 437aa92..705d7d0 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 -q -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz) + $wget_cmd -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$locale.gz) 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.gz \ + us/${dist}/${part}/i18n/Translation-$locale.gz done done done fi + +exit 0