1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

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

View File

@ -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