X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=cron.d%2F120synctrans;h=115b59fa86c8ad8e9e63011e8e7e047a798adeb4;hp=add4c3513a50937145669a38718c17eb927064d2;hb=fc66281d844d9cd1b4563f46799a6496c63b1cca;hpb=1ed1338d28ba3ef94d55ffc9751fc312e6eafa05 diff --git a/cron.d/120synctrans b/cron.d/120synctrans index add4c35..115b59f 100755 --- a/cron.d/120synctrans +++ b/cron.d/120synctrans @@ -5,10 +5,14 @@ test -d ${archivedir} || mkdir -p ${archivedir} cd ${archivedir} -if [ -z "${localdir}" ] +if [ -z "${localdir}" ] || [ -n "$ddtp_ftpsite" ] then - echo using remote mirror - for dist in unstable + if [ -z "$ddtp_ftpsite" ] + then + ddtp_ftpsite="$ftpsite" + fi + echo using remote mirror $ddtp_ftpsite + for dist in sid do for part in main do @@ -17,13 +21,13 @@ 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 else echo using local mirror - for dist in unstable + for dist in sid do for part in main do