Suggested by Helge Kreutzmann <debian -at- helgefjell de>
Since the translations in the main Debian archive are still way outdated, use
ddtp.debian.net for now. Make overriding $ddtp_ftpsite optional and fall back
to $ftpsite automatically if no seperate $ddtp_ftpsite is defined.
backports_ftpsite=http://backports.org/debian
amd64_ftpsite=http://amd64.debian.net/debian
gnuab_ftpsite=http://kfreebsd-gnu.debian.net/debian
+ddtp_ftpsite=http://ddtp.debian.net/debian
root=""
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
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/Translations-$lang.gz)
done
done
done