diff sources/functions.sh @ 582:d66eae57a344

Move mirror list into download.sh.
author Rob Landley <rob@landley.net>
date Tue, 13 Jan 2009 16:42:46 -0600
parents 9dffdd74c186
children 161e2bca18f4
line wrap: on
line diff
--- a/sources/functions.sh	Mon Jan 12 02:47:32 2009 -0600
+++ b/sources/functions.sh	Tue Jan 13 16:42:46 2009 -0600
@@ -212,11 +212,12 @@
   fi
 
   # Try standard locations
+  # Note: the URLs in mirror list cannot contain whitespace.
 
-  for i in "$URL" http://impactlinux.com/firmware/mirror/"$FILENAME" \
-    http://landley.net/code/firmware/mirror/"$FILENAME"
+  try_download "$URL" && return 0
+  for i in $MIRROR_LIST
   do
-    try_download "$i" && return 0
+    try_download "$i/$FILENAME" && return 0
   done
 
   # Return failure.