From e2883ffbfbd2d5bb36a860f2e3030e508ea7e683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gon=C3=A7alves?= Date: Sat, 22 Aug 2020 17:56:31 +0100 Subject: [PATCH] mkpackage: update lsts url for the new repo of packages. --- mkpackage.bash | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/mkpackage.bash b/mkpackage.bash index ca22f03..38fb617 100755 --- a/mkpackage.bash +++ b/mkpackage.bash @@ -72,21 +72,21 @@ download() fi # First try LSTS mirror. - lsts_url="https://www.lsts.pt/glued/$(basename $u)" - 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 - # Then try OceanScan-MST mirror. - omst_url="http://www.omst.pt/glued/$(basename $u)" - download_tool "$omst_url" "$cfg_dir_downloads/$file" - if [ $? -ne 0 ]; then - echo "ERROR: download failed" - exit 1 - fi - fi - fi + lsts_url="https://www.lsts.pt/glued/validPackages/$(basename $u)" + download_tool "$lsts_url" "$cfg_dir_downloads/$file" + if [ $? -ne 0 ]; then + # Then try OceanScan-MST mirror. + omst_url="http://www.omst.pt/glued/$(basename $u)" + 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 + echo "ERROR: download failed" + exit 1 + fi + fi + fi md5="$(md5sum_tool "$cfg_dir_downloads/$file")" if [ "$s" != "$md5" ]; then