From 79347eaedb9a3d36ddce56148e911f572b12becf Mon Sep 17 00:00:00 2001 From: siretart Date: Wed, 13 Oct 2010 15:09:24 +0000 Subject: TOOLS/binary_codecs.sh: avoid creating fake "bestsites" Do not create a fake 'bestsites' if neither 'fping' nor 'netselect' is installed. change developed by A Mennucc git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32485 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/binary_codecs.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'TOOLS') diff --git a/TOOLS/binary_codecs.sh b/TOOLS/binary_codecs.sh index 79fb0da953..1335cbfdd9 100755 --- a/TOOLS/binary_codecs.sh +++ b/TOOLS/binary_codecs.sh @@ -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 -- cgit v1.2.3