X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=cron.d%2F100syncarchive_backports;h=be82d5f088c89433e8e043014deb59136f5247a7;hp=78ca56a71442ffaed8203913d29aeb921585b090;hb=d833a5eed5296d1a24c35e8f0802f8291037198d;hpb=f7dae3f81707c8cab707df20ba2742a0087baf33 diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports index 78ca56a..be82d5f 100755 --- a/cron.d/100syncarchive_backports +++ b/cron.d/100syncarchive_backports @@ -7,27 +7,33 @@ cd ${archivedir} # backports archive # -for dist in stable +for dist in sarge etch do + 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 ) + 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) + 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) done - echo retrieve Contents $dist/$arch - (cd backports/${dist} && - wget -q -N ${backports_ftpsite}/dists/sarge-backports/Contents-${arch}.gz) + echo retrieve Contents $dist-backports/$arch + (cd backports/${dist}-backports && + wget -q -N ${backports_ftpsite}/dists/${dist}-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) + 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) done done