Commit e8af6a78 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm pack: drop update_url_if_need_mirrored, we hope eget will help us

parent 1a0b64eb
......@@ -51,31 +51,3 @@ return_tar()
echo $1 >$RETURNTARNAME || fatal "Can't save tar name $1 to file $RETURNTARNAME"
}
# copied from play.d/common.sh
check_url_is_accessible()
{
local res
epm tool eget --check "$1"
}
# update URL variable
update_url_if_need_mirrored()
{
local MIRROR="$1"
local SECONDURL
check_url_is_accessible "$URL" && return
if [ -n "$MIRROR" ] ; then
check_url_is_accessible "$MIRROR" && URL="$MIRROR"
return
fi
MIRROR="https://mirror.eterfund.ru"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
check_url_is_accessible "$SECONDURL" && URL="$SECONDURL" && return
MIRROR="https://mirror.eterfund.org"
SECONDURL="$(echo "$URL" | sed -e "s|^.*://|$MIRROR/|")"
check_url_is_accessible "$SECONDURL" && URL="$SECONDURL" && return
}
......@@ -33,7 +33,6 @@ pack_ffmpeg() {
}
URL="https://browser-resources.s3.yandex.net/linux/codecs.json"
update_url_if_need_mirrored
# download ffmpeg with upstream script update-ffmpeg but with our pack_ffmpeg function
SC=$(mktemp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment