package: ignore failed downloads with IGNORE_ERRORS
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 14 May 2014 15:49:22 +0000 (15:49 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 14 May 2014 15:49:22 +0000 (15:49 +0000)
When IGNORE_ERROR is set, also skip broken downloads, this is required
to make a full "make download" run even if some upstream sources are
unreachable.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 40768

package/Makefile

index 3b4eecdf0bf8801a4457063b758faf3f60b0290e..e189e37043c117359083112e2fcfd979b9ecfbfb 100644 (file)
@@ -18,6 +18,7 @@ ifneq ($(IGNORE_ERRORS),)
   package-n-filter := $(filter-out $(package-y) $(package-m),$(package-))
   package-ignore-errors := $(filter n m y,$(IGNORE_ERRORS))
   package-ignore-errors := $(if $(package-ignore-errors),$(package-ignore-errors),n m)
+  $(curdir)/builddirs-ignore-download := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))
   $(curdir)/builddirs-ignore-compile := $(foreach m,$(package-ignore-errors),$(package-$(m)-filter))
 endif