diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-29 19:26:41 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-29 20:11:25 +0100 |
commit | 8c8c9cd88a16386a3929625970097253ab449f3b (patch) | |
tree | 1d4895f6333ad166c6d69b25db492b00a8295340 /src | |
parent | compat: support 3.18, 3.19, 4.0 (diff) | |
download | wireguard-monolithic-historical-8c8c9cd88a16386a3929625970097253ab449f3b.tar.xz wireguard-monolithic-historical-8c8c9cd88a16386a3929625970097253ab449f3b.zip |
qemu: kernel.org mirrors get updates slowly
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/qemu/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/qemu/Makefile b/src/tests/qemu/Makefile index aad4557..6066c74 100644 --- a/src/tests/qemu/Makefile +++ b/src/tests/qemu/Makefile @@ -31,11 +31,11 @@ endef define file_download = $(DISTFILES_PATH)/$(1): mkdir -p $(DISTFILES_PATH) - flock -x $$@.lock -c '[ -f $$@ ] && exit 0; $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1)' + flock -x $$@.lock -c '[ -f $$@ ] && exit 0; $(DOWNLOAD) $$@ $(MIRROR)$(1) || $(DOWNLOAD) $$@ $(2)$(1) || rm -f $$@' endef ifeq ($(findstring -rc,$(KERNEL_VERSION)),) -KERNEL_URL_DIRECTORY := https://cdn.kernel.org/pub/linux/kernel/v$(firstword $(subst ., ,$(KERNEL_VERSION))).x/ +KERNEL_URL_DIRECTORY := https://www.kernel.org/pub/linux/kernel/v$(firstword $(subst ., ,$(KERNEL_VERSION))).x/ else KERNEL_URL_DIRECTORY := https://cdn.kernel.org/pub/linux/kernel/v$(firstword $(subst ., ,$(KERNEL_VERSION))).x/testing/ endif |