[SCM] Installer for game data files branch, rottnet, updated. 170af3d5e5135587a3f446547c06c9732e1242c9
Jon Dowland
jmtd at debian.org
Thu Feb 25 18:59:55 UTC 2010
The following commit has been merged in the rottnet branch:
commit 170af3d5e5135587a3f446547c06c9732e1242c9
Author: Jon Dowland <jmtd at debian.org>
Date: Thu Feb 25 18:59:02 2010 +0000
support alternative paths for the same mirror
diff --git a/lib/rott-mirrors b/lib/rott-mirrors
index 2ef0a79..573fbee 100644
--- a/lib/rott-mirrors
+++ b/lib/rott-mirrors
@@ -1,2 +1,3 @@
-ftp://ftp.3drealms.com/share/1rott13.zip ftp://ftp.3drealms.com/pub/share/1rott13.zip
-http://pkg-games.alioth.debian.org/1rott13.zip
+# ftp://ftp.3drealms.com/share/1rott13.zip ftp://ftp.3drealms.com/pub/share/1rott13.zip
+# http://pkg-games.alioth.debian.org/1rott13.zip
+http://localhost/1rott13.zip http://localhost/foo/1rott13.zip
diff --git a/supported/rott b/supported/rott
index e73001d..774d664 100644
--- a/supported/rott
+++ b/supported/rott
@@ -38,9 +38,15 @@ fi
downloadzip() {
dest="$WORKDIR/1rott13.zip"
mirror=$(grep -v ^# "$rottmirrors" | sort -R | head -n1)
- wget --progress=dot --directory-prefix "$WORKDIR" -c "$mirror"
- rottzip="$dest"
- downloaded=true
+ for try in $mirror; do
+ if wget --progress=dot --directory-prefix "$WORKDIR" -c "$try"
+ then
+ rottzip="$dest"
+ downloaded=true
+ return
+ fi
+ done
+ die "error: could not find 1rott13.zip at our chosen mirror"
}
checksum() {
--
Installer for game data files
More information about the Pkg-games-commits
mailing list