mkpackage: update lsts url for the new repo of packages.

This commit is contained in:
Pedro Gonçalves 2020-08-22 17:56:31 +01:00
parent 30fc9943b5
commit e2883ffbfb

View File

@ -72,15 +72,15 @@ download()
fi fi
# First try LSTS mirror. # First try LSTS mirror.
lsts_url="https://www.lsts.pt/glued/$(basename $u)" lsts_url="https://www.lsts.pt/glued/validPackages/$(basename $u)"
download_tool "$lsts_url" "$cfg_dir_downloads/$file" download_tool "$lsts_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# Try upstream URL.
download_tool "$u" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
# Then try OceanScan-MST mirror. # Then try OceanScan-MST mirror.
omst_url="http://www.omst.pt/glued/$(basename $u)" omst_url="http://www.omst.pt/glued/$(basename $u)"
download_tool "$omst_url" "$cfg_dir_downloads/$file" download_tool "$omst_url" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then
# On failure try upstream URL.
download_tool "$u" "$cfg_dir_downloads/$file"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "ERROR: download failed" echo "ERROR: download failed"
exit 1 exit 1