From: Frank Lichtenheld Date: Sat, 2 Jun 2007 16:04:06 +0000 (+0200) Subject: Add etch-m68k X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=0e673db69e902d63ebb471926c06547e685db610;p=deb%2Fpackages.git Add etch-m68k Simply add it as a seperate suite since that is what it really is. Everything else will be either ugly and/or confusing. --- diff --git a/config.sh.sed.in b/config.sh.sed.in index a31d32a..e392f33 100644 --- a/config.sh.sed.in +++ b/config.sh.sed.in @@ -42,7 +42,7 @@ ddtplangs="de cs da eo es fi fr hu it ja nl pl pt_BR pt_PT ru sk sv_SE uk" archives="us security amd64 gnuab backports volatile" sections="main contrib non-free" parts="$sections" -suites="oldstable oldstable-volatile oldstable-backports stable stable-volatile stable-backports testing unstable experimental" +suites="oldstable oldstable-volatile oldstable-backports stable etch-m68k stable-volatile stable-backports testing unstable experimental" priorities="required important standard optional extra" dists="$suites" architectures="alpha amd64 arm armel hppa hurd-i386 i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc" diff --git a/cron.d/100syncarchive_m68k b/cron.d/100syncarchive_m68k new file mode 100755 index 0000000..f8aa4f5 --- /dev/null +++ b/cron.d/100syncarchive_m68k @@ -0,0 +1,81 @@ +#! /bin/bash + +. `dirname $0`/../config.sh + +test -d ${archivedir} || mkdir -p ${archivedir} +cd ${archivedir} + +# Main archive +# +arch=m68k +if [ -z "${localdir}" ] +then + echo using remote mirror + for dist in etch + do + echo "retrieve Release(.gpg) $dist" + test -d us/${dist}-${arch} || mkdir -p us/${dist}-${arch} + (cd us/${dist} && + wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release && + wget -q -N ${ftpsite}/dists/${dist}-${arch}/Release.gpg ) + +# foo=\$arch_${dist//-/_} +# for arch in `eval echo $foo` +# do + for part in ${parts} + do + echo retrieve Packages $dist-${arch}/$part/$arch + test -d us/${dist}-${arch}/${part}/binary-${arch} || mkdir -p us/${dist}-${arch}/${part}/binary-${arch} + (cd us/${dist}-${arch}/${part}/binary-${arch} && + wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz) + done + #FIXME: no Contents files for p-u + test ! "$dist" = "experimental" || continue + echo retrieve Contents $dist/$arch + (cd us/${dist}-${arch} && + wget -q -N ${ftpsite}/dists/${dist}-${arch}/Contents-${arch}.gz) +# done + for part in ${parts} + do + echo retrieve Sources $dist-${arch}/$part + test -d us/${dist}-${arch}/${part}/source || mkdir -p us/${dist}-${arch}/${part}/source + (cd us/${dist}-${arch}/${part}/source && + wget -q -N ${ftpsite}/dists/${dist}-${arch}/${part}/source/Sources.gz) + done + done +else + echo using local mirror + for dist in etch + do + echo "retrieve Releases(.gpg) $dist" + test -d us/${dist}-${arch} || mkdir -p us/${dist}-${arch} + (cd us/${dist}-${arch} && + rsync -t ${localdir}/dists/${dist}-${arch}/Release && + rsync -t ${localdir}/dists/${dist}-${arch}/Release.gpg ) + +# foo=\$arch_${dist//-/_} +# for arch in `eval echo $foo` +# do + for part in ${parts} + do + echo retrieve Packages $dist-${arch}/$part/$arch + test -d us/${dist}-${arch}/${part}/binary-${arch} || mkdir -p us/${dist}-${arch}/${part}/binary-${arch} + rsync -t ${localdir}/dists/${dist}-${arch}/${part}/binary-${arch}/Packages.gz \ + us/${dist}-${arch}/${part}/binary-${arch}/Packages.gz + done + #FIXME: no Contents files for p-u + test ! "$dist" = "experimental" || continue + echo retrieve Contents $dist-${arch}/$arch + rsync -t ${localdir}/dists/${dist}-${arch}/Contents-${arch}.gz \ + us/${dist}-${arch}/Contents-${arch}.gz +# done + for part in ${parts} + do + echo retrieve Sources $dist-${arch}/$part + test -d us/${dist}-${arch}/${part}/source || mkdir -p us/${dist}-${arch}/${part}/source + rsync -t ${localdir}/dists/${dist}-${arch}/${part}/source/Sources.gz \ + us/${dist}-${arch}/${part}/source/Sources.gz + done + done +fi + diff --git a/lib/Deb/Versions.pm b/lib/Deb/Versions.pm index 5f3b1db..366af76 100644 --- a/lib/Deb/Versions.pm +++ b/lib/Deb/Versions.pm @@ -154,7 +154,7 @@ sub _lcmp { } our @SUITES_SORT = qw( woody oldstable sarge stable stable-proposed-updates - etch testing testing-proposed-updates sid unstable + etch etch-m68k testing testing-proposed-updates sid unstable experimental warty hoary hoary-backports breezy breezy-backports dapper ); our @ARCHIVE_SORT = qw( non-US security updates volatile backports );