chiark / gitweb /
my-debmirror: miscellaneous updates - lenny and squeeze are long-obsolete, wheezy...
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 15:51:37 +0000 (15:51 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 15:51:37 +0000 (15:51 +0000)
my-debmirror

index fd11f52..5c5b73f 100755 (executable)
@@ -1,23 +1,12 @@
 #! /bin/sh
 set -e
-DEB_MIRROR=${DEB_MIRROR:-ftp.de.debian.org}
+unset http_proxy
+DEB_MIRROR=${DEB_MIRROR:-ftp.se.debian.org}
 debmirror /mirror/debian -h "$DEB_MIRROR" --method http \
-         --dist=lenny,squeeze,sid \
-         --section=main,contrib,non-free,main/debian-installer \
+         --dist=wheezy,jessie,sid,experimental \
+         --section=main,main/debian-installer \
          --arch=i386 --getcontents \
-         --ignore=^README --ignore=^doc/ \
-         --ignore=^indices/ --ignore=^tools/ --ignore=main/installer- "$@"
-ln -nsf lenny /mirror/debian/dists/stable
-ln -nsf squeeze /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 --delete "$DEB_MIRROR::debian/$dir/" "/mirror/debian/$dir/"
-done
-for dist in lenny squeeze sid; do
-       for arch in i386; do
-               rsync -aqz --delete \
-                       "$DEB_MIRROR::debian/dists/$dist/main/installer-$arch/" \
-                       "/mirror/debian/dists/$dist/main/installer-$arch/"
-       done
-done
+         --rsync-extra=doc,indices,tools,trace --di-dist=wheezy,sid \
+         --i18n \
+         --exclude='i18n/Translation-' --include='i18n/Translation-en' \
+         "$@"