X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cron.d%2F100syncarchive_backports;fp=cron.d%2F100syncarchive_backports;h=78ca56a71442ffaed8203913d29aeb921585b090;hb=f7dae3f81707c8cab707df20ba2742a0087baf33;hp=0000000000000000000000000000000000000000;hpb=9c048903c83d44428f638e77df45daaf076362c6;p=deb%2Fpackages.git diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports new file mode 100755 index 0000000..78ca56a --- /dev/null +++ b/cron.d/100syncarchive_backports @@ -0,0 +1,33 @@ +#!/bin/bash + +. `dirname $0`/../config.sh + +test -d ${archivedir} || mkdir -p ${archivedir} +cd ${archivedir} + +# backports archive +# +for dist in stable +do + foo=\$arch_${dist//-/_} + for arch in `eval echo $foo` + do + for part in ${parts} + do + echo retrieve Packages $dist/$part/backports/$arch + test -d backports/${dist}/${part}/binary-${arch} || mkdir -p backports/${dist}/${part}/binary-${arch} + (cd backports/${dist}/${part}/binary-${arch} && + wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/binary-${arch}/Packages.gz) + done + echo retrieve Contents $dist/$arch + (cd backports/${dist} && + wget -q -N ${backports_ftpsite}/dists/sarge-backports/Contents-${arch}.gz) + done + for part in ${parts} + do + echo retrieve Sources $dist/$part/backports + test -d backports/${dist}/${part}/source || mkdir -p backports/${dist}/${part}/source + (cd backports/${dist}/${part}/source && + wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/source/Sources.gz) + done +done