X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=db71ae454ee1b80b5a4eebf35ec56744f3e1089c;hb=be58cfd6762c6e9f47201893e68ee0ebca88486e;hp=0816c037f13fcaddfd1130310801958d65b41653;hpb=d301afddcb052afc0addc806cb7a64a49ddb133f;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 0816c03..db71ae4 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,9 +35,10 @@ 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