3 . `dirname $0`/../config.sh
5 test -d ${archivedir} || mkdir -p ${archivedir}
10 if [ -z "${localdir}" ]
12 echo using remote mirror
15 echo "retrieve Release(.gpg) $dist"
16 test -d us/${dist} || mkdir -p us/${dist}
18 $wget_cmd -N ${ftpsite}/dists/${dist}/Release &&
19 $wget_cmd -N ${ftpsite}/dists/${dist}/Release.gpg )
21 foo=\$arch_${dist//-/_}
22 for arch in `eval echo $foo`
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)
31 echo retrieve Contents $dist/$arch
33 $wget_cmd -N ${ftpsite}/dists/${dist}/Contents-${arch}.gz)
37 echo retrieve Sources $dist/$part
38 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
39 (cd us/${dist}/${part}/source &&
40 $wget_cmd -N ${ftpsite}/dists/${dist}/${part}/source/Sources.gz)
44 echo using local mirror
47 echo "retrieve Releases(.gpg) $dist"
48 test -d us/${dist} || mkdir -p us/${dist}
49 rsync -t ${localdir}/dists/${dist}/Release us/${dist}/Release
50 rsync -t ${localdir}/dists/${dist}/Release.gpg us/${dist}/Release.gpg
52 foo=\$arch_${dist//-/_}
53 for arch in `eval echo $foo`
57 echo retrieve Packages $dist/$part/$arch
58 test -d us/${dist}/${part}/binary-${arch} || mkdir -p us/${dist}/${part}/binary-${arch}
59 rsync -t ${localdir}/dists/${dist}/${part}/binary-${arch}/Packages.gz \
60 us/${dist}/${part}/binary-${arch}/Packages.gz
62 echo retrieve Contents $dist/$arch
63 rsync -t ${localdir}/dists/${dist}/Contents-${arch}.gz \
64 us/${dist}/Contents-${arch}.gz
68 echo retrieve Sources $dist/$part
69 test -d us/${dist}/${part}/source || mkdir -p us/${dist}/${part}/source
70 rsync -t ${localdir}/dists/${dist}/${part}/source/Sources.gz \
71 us/${dist}/${part}/source/Sources.gz
80 echo "retrieve Release(.gpg) $dist"
81 test -d security/${dist} || mkdir -p security/${dist}
82 (cd security/${dist} &&
83 $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/Release &&
84 $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/Release.gpg )
86 foo=\$arch_${dist//-/_}
87 for arch in `eval echo $foo`
91 echo retrieve Packages $dist-security/$part/$arch
92 test -d security/${dist}/${part}/binary-${arch} || mkdir -p security/${dist}/${part}/binary-${arch}
93 (cd security/${dist}/${part}/binary-${arch} &&
94 $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/${part}/binary-${arch}/Packages.gz)
99 echo retrieve Sources $dist/$part/security
100 test -d security/${dist}/${part}/source || mkdir -p security/${dist}/${part}/source
101 (cd security/${dist}/${part}/source &&
102 $wget_cmd -N ${security_ftpsite}/dists/${dist}-security/${part}/source/Sources.gz)