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`
25 part="$part/debian-installer"
26 echo retrieve Packages $dist/$part/$arch
27 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
28 (cd us/${dist}/${part}/binary-${arch} &&
29 $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
34 echo using local mirror
38 if [ $dist = experimental ]; then
42 foo=\$arch_${dist//-/_}
43 for arch in `eval echo $foo`
47 part="$part/debian-installer"
48 echo retrieve Sources $dist/$part/$arch
49 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
50 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
51 us/${dist}/${part}/binary-${arch}/Packages.gz