From f182b1a2a1127599da0d61af4f7ae818455ffc42 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 23 Apr 2018 05:36:09 +0200 Subject: qemu: retry on 404 in wget for kernel.org race --- src/tests/qemu/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index 957378d..808e20d 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -20,8 +20,6 @@ DISTFILES_PATH ?= $(PWD)/distfiles DEBUG_KERNEL ?= no NR_CPUS ?= 4 -DOWNLOAD := wget -O -# DOWNLOAD := curl -f -o MIRROR := https://download.wireguard.com/qemu-test/distfiles/ WIREGUARD_SOURCES := $(wildcard ../../*.c ../../*.h ../../selftest/*.h ../../crypto/*.c ../../crypto/*.h ../../crypto/*.S ../../compat/*.h) @@ -41,7 +39,7 @@ endef define file_download = $(DISTFILES_PATH)/$(1): mkdir -p $(DISTFILES_PATH) - flock -x $$@.lock -c '[ -f $$@ ] && exit 0; $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1) || rm -f $$@' + flock -x $$@.lock -c '[ -f $$@ ] && exit 0; wget -O $$@ $(MIRROR)$(1) || wget -t inf --retry-on-http-error=404 -O $$@ $(2)$(1) || rm -f $$@' endef ifeq ($(findstring -rc,$(KERNEL_VERSION)),) -- cgit v1.2.3-59-g8ed1b