Mercurial > mplayer.hg
changeset 32399:8f3293925a93
do not create a fake 'bestsites' if neither 'fping' or 'netselect' are installed
change developed by A Mennucc <mennucc1 [at] debian [dot] org>
author | siretart |
---|---|
date | Wed, 13 Oct 2010 15:09:24 +0000 |
parents | 68722c75c922 |
children | 83d15532e904 |
files | TOOLS/binary_codecs.sh |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/binary_codecs.sh Wed Oct 13 15:02:00 2010 +0000 +++ b/TOOLS/binary_codecs.sh Wed Oct 13 15:09:24 2010 +0000 @@ -43,7 +43,6 @@ 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 @@ 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