Use this to set tries and timeout to something more reasonable.
Pressed by the ddtp outage.
debports_ftpsite=http://ftp.debian-ports.org/debian
ddtp_ftpsite=http://ddtp.debian.net/debian
+wget_cmd="wget --no-verbose --tries=2 --timeout=60"
+
root=""
# Architectures
echo "retrieve Release(.gpg) $dist"
test -d us/${dist} || mkdir -p us/${dist}
(cd us/${dist} &&
- wget -q -N ${ftpsite}/dists/${dist}/Release &&
- wget -q -N ${ftpsite}/dists/${dist}/Release.gpg )
+ $wget_cmd -N ${ftpsite}/dists/${dist}/Release &&
+ $wget_cmd -N ${ftpsite}/dists/${dist}/Release.gpg )
foo=\$arch_${dist//-/_}
for arch in `eval echo $foo`
echo retrieve Packages $dist/$part/$arch
test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
(cd us/${dist}/${part}/binary-${arch} &&
- wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
done
#FIXME: no Contents files for p-u
test ! "$dist" = "experimental" || continue
echo retrieve Contents $dist/$arch
(cd us/${dist} &&
- wget -q -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
done
for part in ${parts}
do
echo retrieve Sources $dist/$part
test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
(cd us/${dist}/${part}/source &&
- wget -q -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
done
done
else
echo "retrieve Release(.gpg) $dist"
test -d security/${dist} || mkdir -p security/${dist}
(cd security/${dist} &&
- wget -q -N ${security_ftpsite}/dists/${dist}/updates/Release &&
- wget -q -N ${security_ftpsite}/dists/${dist}/updates/Release.gpg )
+ $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release &&
+ $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/Release.gpg )
foo=\$arch_${dist//-/_}
for arch in `eval echo $foo`
echo retrieve Packages $dist/$part/security/$arch
test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
(cd security/${dist}/${part}/binary-${arch} &&
- wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/binary-${arch}/Packages.gz)
done
done
for part in ${parts}
echo retrieve Sources $dist/$part/security
test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
(cd security/${dist}/${part}/source &&
- wget -q -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)
+ $wget_cmd -N ${security_ftpsite}/dists/${dist}/updates/${part}/source/Sources.gz)
done
done
echo "retrieve Release(.gpg) $dist"
test -d amd64/${dist} || mkdir -p amd64/${dist}
(cd amd64/${dist} &&
- wget -q -N ${amd64_ftpsite}/dists/${dist}/Release &&
- wget -q -N ${amd64_ftpsite}/dists/${dist}/Release.gpg )
+ $wget_cmd -N ${amd64_ftpsite}/dists/${dist}/Release &&
+ $wget_cmd -N ${amd64_ftpsite}/dists/${dist}/Release.gpg )
for part in ${parts} main/debian-installer
do
echo retrieve Packages $dist/$part/$arch
test -d amd64/${dist}/${part}/binary-${arch} || mkdir -p amd64/${dist}/${part}/binary-${arch}
(cd amd64/${dist}/${part}/binary-${arch} &&
- wget -q -N ${amd64_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${amd64_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
done
echo retrieve Contents $dist/$arch
(cd amd64/${dist} &&
- wget -q -N ${amd64_ftpsite}/dists/${dist}/Contents-${arch}.gz)
+ $wget_cmd -N ${amd64_ftpsite}/dists/${dist}/Contents-${arch}.gz)
done
echo "retrieve Release(.gpg) $dist-backports"
test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports
(cd backports/${dist}-backports &&
- wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release &&
- wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg )
+ $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release &&
+ $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg )
foo=\$arch_${dist//-/_}
for arch in `eval echo $foo`
echo retrieve Packages $dist-backports/$part/$arch
test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch}
(cd backports/${dist}-backports/${part}/binary-${arch} &&
- wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz)
done
echo retrieve Contents $dist-backports/$arch
(cd backports/${dist}-backports &&
- wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz)
+ $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz)
done
for part in ${parts}
do
echo retrieve Sources $dist-backports/$part
test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source
(cd backports/${dist}-backports/${part}/source &&
- wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz)
+ $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz)
done
done
echo "retrieve Release(.gpg) $dist"
test -d debports/${dist} || mkdir -p debports/${dist}
(cd debports/${dist} &&
- wget -q -N ${debports_ftpsite}/dists/${dist}/Release &&
- wget -q -N ${debports_ftpsite}/dists/${dist}/Release.gpg )
+ $wget_cmd -N ${debports_ftpsite}/dists/${dist}/Release &&
+ $wget_cmd -N ${debports_ftpsite}/dists/${dist}/Release.gpg )
for arch in $architectures
do
echo retrieve Packages $dist/$part/$arch
test -d debports/${dist}/${part}/binary-${arch} || mkdir -p debports/${dist}/${part}/binary-${arch}
(cd debports/${dist}/${part}/binary-${arch} &&
- wget -q -N ${debports_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${debports_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
done
echo retrieve Contents $dist/$arch
(cd debports/${dist} &&
- wget -q -N ${debports_ftpsite}/dists/${dist}/Contents-${arch}.gz)
+ $wget_cmd -N ${debports_ftpsite}/dists/${dist}/Contents-${arch}.gz)
done
done
echo retrieve Packages $dist/$part/$arch
test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
(cd us/${dist}/${part}/binary-${arch} &&
- wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
done
done
done
echo "retrieve Release(.gpg) $dist"
test -d us/${dist}-${arch} || mkdir -p us/${dist}-${arch}
(cd us/${dist} &&
- wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release &&
- wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release.gpg )
+ $wget_cmd -N ${ftpsite}/dists/${dist}-${arch}/Release &&
+ $wget_cmd -N ${ftpsite}/dists/${dist}-${arch}/Release.gpg )
# foo=\$arch_${dist//-/_}
# for arch in `eval echo $foo`
echo retrieve Packages $dist-${arch}/$part/$arch
test -d us/${dist}-${arch}/${part}/binary-${arch} || mkdir -p us/${dist}-${arch}/${part}/binary-${arch}
(cd us/${dist}-${arch}/${part}/binary-${arch} &&
- wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz)
done
#FIXME: no Contents files for p-u
test ! "$dist" = "experimental" || continue
echo retrieve Contents $dist/$arch
(cd us/${dist}-${arch} &&
- wget -q -N ${ftpsite}/dists/${dist}-${arch}/Contents-${arch}.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}-${arch}/Contents-${arch}.gz)
# done
for part in ${parts}
do
echo retrieve Sources $dist-${arch}/$part
test -d us/${dist}-${arch}/${part}/source || mkdir -p us/${dist}-${arch}/${part}/source
(cd us/${dist}-${arch}/${part}/source &&
- wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/source/Sources.gz)
+ $wget_cmd -N ${ftpsite}/dists/${dist}-${arch}/${part}/source/Sources.gz)
done
done
else
else
if [ ! -L Maintainers ]
then
- wget -q -O Maintainers ftp://ftp.debian.org/debian/indices/Maintainers
+ $wget_cmd -O Maintainers ftp://ftp.debian.org/debian/indices/Maintainers
fi
fi
echo "retrieve Release(.gpg) $dist-volatile"
test -d volatile/${dist}-volatile || mkdir -p volatile/${dist}-volatile
(cd volatile/${dist}-volatile &&
- wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release &&
- wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release.gpg )
+ $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Release &&
+ $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Release.gpg )
foo=\$arch_${dist//-/_}
for arch in `eval echo $foo`
echo retrieve Packages $dist-volatile/$part/$arch
test -d volatile/${dist}-volatile/${part}/binary-${arch} || mkdir -p volatile/${dist}-volatile/${part}/binary-${arch}
(cd volatile/${dist}-volatile/${part}/binary-${arch} &&
- wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/binary-${arch}/Packages.gz)
+ $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/binary-${arch}/Packages.gz)
done
echo retrieve Contents $dist-volatile/$arch
(cd volatile/${dist}-volatile &&
- wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Contents-${arch}.gz)
+ $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/Contents-${arch}.gz)
done
for part in ${parts}
echo retrieve Sources $dist-volatile/$part
test -d volatile/${dist}-volatile/${part}/source || mkdir -p volatile/${dist}-volatile/${part}/source
(cd volatile/${dist}-volatile/$part/source &&
- wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/source/Sources.gz)
+ $wget_cmd -N ${volatile_ftpsite}/dists/${dist}/volatile/${part}/source/Sources.gz)
done
done
test -d ${debtagsdir} || mkdir -p ${debtagsdir}
cd ${debtagsdir}
-wget -q -N http://debtags.alioth.debian.org/tags/vocabulary.gz &&
+$wget_cmd -N http://debtags.alioth.debian.org/tags/vocabulary.gz &&
gunzip -f vocabulary.gz
cd "$topdir"
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