[MPlayer-cvslog] r32485 - trunk/TOOLS/binary_codecs.sh

siretart subversion at mplayerhq.hu
Wed Oct 13 17:09:24 CEST 2010


Author: siretart
Date: Wed Oct 13 17:09:24 2010
New Revision: 32485

Log:
do not create a fake 'bestsites' if neither 'fping' or 'netselect' are installed

change developed by A Mennucc <mennucc1 [at] debian [dot] org>

Modified:
   trunk/TOOLS/binary_codecs.sh

Modified: trunk/TOOLS/binary_codecs.sh
==============================================================================
--- trunk/TOOLS/binary_codecs.sh	Wed Oct 13 17:02:00 2010	(r32484)
+++ trunk/TOOLS/binary_codecs.sh	Wed Oct 13 17:09:24 2010	(r32485)
@@ -43,7 +43,6 @@ choosemirror ()
       echo "(If you install 'netselect' or 'fping', it will select the best mirror for you"
       echo "  you may wish to stop this script and rerun after installation)"
       sleep 3
-      head -3 mirrors > bestsites
     fi
   fi
 }
@@ -62,7 +61,9 @@ INSTALL () {
   fi
 
   if [ "$url" = @MAINSITE@ ] ; then
-    cat $PREFDIR/bestsites | while read mainsite ; do
+    list=$PREFDIR/bestsites
+    test -r $list || list=$PREFDIR/mirrors
+    cat $list | while read mainsite ; do
       echo Downloading $filename from $mainsite ...
       wget -c -N $mainsite/$dir/$filename || true
       if [ -r "$filename" ] ; then


More information about the MPlayer-cvslog mailing list