From: Frank Lichtenheld Date: Mon, 27 Nov 2006 23:47:09 +0000 (+0000) Subject: Download Release and Release.gpg files. We could use them one day X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=1f7a7225c79c1a6a1caa2f51d208e1dad14997d7;p=deb%2Fpackages.git Download Release and Release.gpg files. We could use them one day to verify downloaded Packages.gz files --- diff --git a/cron.d/100syncarchive b/cron.d/100syncarchive index 5b53476..fd46a99 100755 --- a/cron.d/100syncarchive +++ b/cron.d/100syncarchive @@ -12,6 +12,12 @@ then echo using remote mirror for dist in $dists do + echo "retrieve Release(.gpg) $dist" + test -d us/${dist} || mkdir -p us/${dist} + (cd us/${dist} && + wget -q -N ${ftpsite}/dists/${dist}/Release && + wget -q -N ${ftpsite}/dists/${dist}/Release.gpg ) + foo=\$arch_${dist//-/_} for arch in `eval echo $foo` do @@ -41,6 +47,12 @@ else echo using local mirror for dist in $dists do + echo "retrieve Releases(.gpg) $dist" + test -d us/${dist} || mkdir -p us/${dist} + (cd us/${dist} && + rsync -t ${localdir}/dists/${dist}/Release && + rsync -t ${localdir}/dists/${dist}/Release.gpg ) + foo=\$arch_${dist//-/_} for arch in `eval echo $foo` do diff --git a/cron.d/100syncarchive_amd64 b/cron.d/100syncarchive_amd64 index 69bef37..90a50b8 100755 --- a/cron.d/100syncarchive_amd64 +++ b/cron.d/100syncarchive_amd64 @@ -11,6 +11,12 @@ arch=amd64 for dist in stable do + echo "retrieve Release(.gpg) $dist" + test -d amd64/${dist} || mkdir -p amd64/${dist} + (cd amd64/${dist} && + wget -q -N ${amd64_ftpsite}/dists/${dist}/Release && + wget -q -N ${amd64_ftpsite}/dists/${dist}/Release.gpg ) + for part in ${parts} main/debian-installer do echo retrieve Packages $dist/$part/$arch diff --git a/cron.d/100syncarchive_backports b/cron.d/100syncarchive_backports index fef94c2..7860f2b 100755 --- a/cron.d/100syncarchive_backports +++ b/cron.d/100syncarchive_backports @@ -9,6 +9,12 @@ cd ${archivedir} # for dist in stable 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/sarge-backports/Release && + wget -q -N ${backports_ftpsite}/dists/sarge-backports/Release.gpg ) + foo=\$arch_${dist//-/_} for arch in `eval echo $foo` do diff --git a/cron.d/100syncarchive_kfreebsd b/cron.d/100syncarchive_kfreebsd index 85160dc..287b00a 100755 --- a/cron.d/100syncarchive_kfreebsd +++ b/cron.d/100syncarchive_kfreebsd @@ -9,9 +9,15 @@ cd ${archivedir} # architectures="kfreebsd-i386 kfreebsd-amd64" -for arch in $architectures +for dist in unstable experimental do - for dist in unstable experimental + echo "retrieve Release(.gpg) $dist" + test -d kfreebsd/${dist} || mkdir -p kfreebsd/${dist} + (cd kfreebsd/${dist} && + wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Release && + wget -q -N ${kfreebsd_ftpsite}/dists/${dist}/Release.gpg ) + + for arch in $architectures do for part in ${parts} main/debian-installer do diff --git a/cron.d/100syncarchive_volatile b/cron.d/100syncarchive_volatile index b983e64..d62f7d2 100755 --- a/cron.d/100syncarchive_volatile +++ b/cron.d/100syncarchive_volatile @@ -9,6 +9,12 @@ cd ${archivedir} # for dist in stable do + echo "retrieve Release(.gpg) $dist-volatile" + test -d volatile/${dist}-volatile || mkdir -p volatile/${dist}-volatile + (cd volatile/${dist}-volatile && + wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release && + wget -q -N ${volatile_ftpsite}/dists/${dist}/volatile/Release.gpg ) + foo=\$arch_${dist//-/_} for arch in `eval echo $foo` do