X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F120synctrans;h=115b59fa86c8ad8e9e63011e8e7e047a798adeb4;hb=406e4a74469f551c3cbbb137181c1415dde050c9;hp=12767abce8ae8a68fb25a6f98dd03f73cb588808;hpb=ee72025828634d9ebfbe2ab4a75849a3409d87da;p=deb%2Fpackages.git diff --git a/cron.d/120synctrans b/cron.d/120synctrans index 12767ab..115b59f 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -5,9 +5,13 @@ test -d ${archivedir} || mkdir -p ${archivedir} cd ${archivedir} -if [ -z "${localdir}" ] +if [ -z "${localdir}" ] || [ -n "$ddtp_ftpsite" ] then - echo using remote mirror + if [ -z "$ddtp_ftpsite" ] + then + ddtp_ftpsite="$ftpsite" + fi + echo using remote mirror $ddtp_ftpsite for dist in sid do for part in main @@ -17,7 +21,7 @@ then do echo retrieve translated Descs $dist/$part/$lang (cd us/${dist}/${part}/i18n && - wget -q -N ${ftpsite}/dists/${dist}/${part}/i18n/Translations-$lang.gz) + wget -q -N ${ddtp_ftpsite}/dists/${dist}/${part}/i18n/Translation-$lang.gz) done done done