From 7d994cecd879a62205a5283aafff51dad5bfd310 Mon Sep 17 00:00:00 2001 From: Adam Borowski <adam.borowski@sigma.se> Date: Wed, 14 Apr 2021 12:42:25 +0200 Subject: [PATCH] Bug #4806 - asterisk is failing to compile due to http://downloads.asterisk.org being down if downloading from asterisk fails second try is made to get the files from fancom mirror Signed-off-by: Adam Borowski <adam.borowski@sigma.se> --- sounds/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sounds/Makefile b/sounds/Makefile index 606bbdcec2..360028c48f 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -22,7 +22,8 @@ MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh CORE_SOUNDS_VERSION:=1.6.1 EXTRA_SOUNDS_VERSION:=1.5.2 MOH_VERSION:=2.03 -SOUNDS_URL:=http://downloads.asterisk.org/pub/telephony/sounds/releases +SOUNDS_URL:=http://downloads.asterisk.org/pub/telephony/sounds/releasesder +SOUNDS_URL_MIRROR:=https://download.iopsys.eu/iopsys/mirror/asterisk/sounds/releasesdff MCS:=$(subst -EN-,-en-,$(MENUSELECT_CORE_SOUNDS)) MCS:=$(subst -EN_AU-,-en_AU-,$(MCS)) MCS:=$(subst -EN_GB-,-en_GB-,$(MCS)) @@ -118,6 +119,9 @@ else if test ! -f $$@ && test ! -f "$(1)$(if $(3),/$(3),)/.$$(subst .tar.gz,,$$@)"; then \ $$(DOWNLOAD) $$(SOUNDS_URL)/$$@; \ fi + if test ! -f $$@ && test ! -f "$(1)$(if $(3),/$(3),)/.$$(subst .tar.gz,,$$@)"; then \ + $$(DOWNLOAD) $$(SOUNDS_URL_MIRROR)/$$@; \ + fi endif endef # sound_format_lang_rule -- GitLab