Add etch-m68k
authorFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sat, 2 Jun 2007 16:04:06 +0000 (18:04 +0200)
committerFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sat, 2 Jun 2007 16:04:06 +0000 (18:04 +0200)
Simply add it as a seperate suite since that is what it
really is. Everything else will be either ugly and/or
confusing.

config.sh.sed.in
cron.d/100syncarchive_m68k [new file with mode: 0755]
lib/Deb/Versions.pm

index a31d32a9a5faf53718de96f46010f7af6b236b25..e392f3392cf11734b42c5c5e681607bf5741b423 100644 (file)
@@ -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 (executable)
index 0000000..f8aa4f5
--- /dev/null
@@ -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
+
index 5f3b1db7b8062719c0c603720b2c28f9762c8835..366af76bccca359450606767630c77936c52f4ba 100644 (file)
@@ -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 );