chiark / gitweb /
remove sarge; add amd64; use rsync --delete
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 3 Apr 2007 16:19:18 +0000 (16:19 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Tue, 3 Apr 2007 16:19:18 +0000 (16:19 +0000)
my-debmirror

index c59ac77..2dbc7fd 100755 (executable)
@@ -1,21 +1,21 @@
 #! /bin/sh
 DEB_MIRROR=${DEB_MIRROR:-ftp.de.debian.org}
 debmirror /mirror/debian -h "$DEB_MIRROR" --passive \
-         --dist=sarge,etch,sid \
+         --dist=etch,sid \
          --section=main,contrib,non-free,main/debian-installer \
-         --arch=i386,powerpc --getcontents \
+         --arch=amd64,i386,powerpc --getcontents \
          --ignore=^README --ignore=^doc/ \
          --ignore=^indices/ --ignore=^tools/ --ignore=main/installer- "$@"
-ln -nsf sarge /mirror/debian/dists/stable
 ln -nsf etch /mirror/debian/dists/testing
 ln -nsf sid /mirror/debian/dists/unstable
 rsync -aqz "$DEB_MIRROR::debian/README*" /mirror/debian/
 for dir in doc indices tools; do
-       rsync -aqz "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
+       rsync -aqz --delete "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
 done
-for dist in sarge etch sid; do
-       for arch in i386 powerpc; do
-               rsync -aqz "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
+for dist in etch sid; do
+       for arch in amd64 i386 powerpc; do
+               rsync -aqz --delete \
+                       "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
                        "/mirror/debian/dists/$dist/main/installer-$arch/"
        done
 done