chiark / gitweb /
Use ln -n to avoid double symlinks.
authorColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 10 Sep 2004 14:39:18 +0000 (14:39 +0000)
committerColin Watson <cjwatson@chiark.greenend.org.uk>
Fri, 10 Sep 2004 14:39:18 +0000 (14:39 +0000)
my-debmirror

index 03c2048..a1d7056 100755 (executable)
@@ -9,10 +9,10 @@ debmirror /mirror/debian -h "$DEB_MIRROR" --passive \
 debmirror /mirror/debian/non-US -h "$DEB_MIRROR" -r /debian-non-US --passive \
          --dist=sarge/non-US,sid/non-US \
          --arch=i386,powerpc --getcontents "$@"
-ln -sf sarge /mirror/debian/dists/testing
-ln -sf sid /mirror/debian/dists/unstable
-ln -sf sarge /mirror/debian/non-US/dists/testing
-ln -sf sid /mirror/debian/non-US/dists/unstable
+ln -nsf sarge /mirror/debian/dists/testing
+ln -nsf sid /mirror/debian/dists/unstable
+ln -nsf sarge /mirror/debian/non-US/dists/testing
+ln -nsf sid /mirror/debian/non-US/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/"