From: Gerfried Fuchs Date: Mon, 11 Oct 2010 09:37:24 +0000 (+0200) Subject: Adjust for -sloppy data fetching X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=febef44c0d2782b1f4e9dded9e31f8187f5d6df4;p=deb%2Fpackages.git Adjust for -sloppy data fetching --- diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports index 9acc155..72b56b9 100755 --- a/cron.d/100syncarchive_backports +++ b/cron.d/100syncarchive_backports @@ -7,35 +7,35 @@ cd ${archivedir} # backports archive # -for dist in etch lenny squeeze +for dist in lenny-backports lenny-backports-sloppy squeeze-backports do - echo "retrieve Release(.gpg) $dist-backports" - test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports - (cd backports/${dist}-backports && - $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release && - $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg ) + echo "retrieve Release(.gpg) $dist" + test -d backports/${dist} || mkdir -p backports/${dist} + (cd backports/${dist} && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release.gpg ) foo=\$arch_${dist//-/_} for arch in `eval echo $foo` do for part in ${parts} do - 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_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz) + echo retrieve Packages $dist/$part/$arch + test -d backports/${dist}/${part}/binary-${arch} || mkdir -p backports/${dist}/${part}/binary-${arch} + (cd backports/${dist}/${part}/binary-${arch} && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz) done - echo retrieve Contents $dist-backports/$arch - (cd backports/${dist}-backports && - $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz) + echo retrieve Contents $dist/$arch + (cd backports/${dist} && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Contents-${arch}.gz) done for part in ${parts} do - 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_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz) + echo retrieve Sources $dist/$part + test -d backports/${dist}/${part}/source || mkdir -p backports/${dist}/${part}/source + (cd backports/${dist}/${part}/source && + $wget_cmd -N ${backports_ftpsite}/dists/${dist}/${part}/source/Sources.gz) done - $check_release_cmd $archivedir/backports/${dist}-backports/Release + $check_release_cmd $archivedir/backports/${dist}/Release done