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 <mennucc1 [at] debian [dot] org>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32485 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
siretart 2010-10-13 15:09:24 +00:00 committed by Uoti Urpala
parent b1f187eb48
commit 79347eaedb
1 changed files with 3 additions and 2 deletions

View File

@ -43,7 +43,6 @@ choosemirror ()
echo "(If you install 'netselect' or 'fping', it will select the best mirror for you" 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)" echo " you may wish to stop this script and rerun after installation)"
sleep 3 sleep 3
head -3 mirrors > bestsites
fi fi
fi fi
} }
@ -62,7 +61,9 @@ INSTALL () {
fi fi
if [ "$url" = @MAINSITE@ ] ; then 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 ... echo Downloading $filename from $mainsite ...
wget -c -N $mainsite/$dir/$filename || true wget -c -N $mainsite/$dir/$filename || true
if [ -r "$filename" ] ; then if [ -r "$filename" ] ; then