3 . `dirname $0`/../config.sh
5 test -d ${archivedir} || mkdir -p ${archivedir}
10 if [ -z "${localdir}" ]
12 echo using remote mirror
16 if [ $dist = experimental ]; then
20 foo=\$arch_${dist//-/_}
21 for arch in `eval echo $foo`
23 for part in "main/debian-installer"
25 echo retrieve Packages $dist/$part/$arch
26 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
27 (cd us/${dist}/${part}/binary-${arch} &&
28 wget -q -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
33 echo using local mirror
37 if [ $dist = experimental ]; then
41 foo=\$arch_${dist//-/_}
42 for arch in `eval echo $foo`
44 for part in "main/debian-installer"
46 echo retrieve Sources $dist/$part/$arch
47 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
48 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
49 us/${dist}/${part}/binary-${arch}/Packages.gz