ref: dbe00bb68b8a67beed66aae866b90296ed311412
parent: 7a92a785f233138dcb88c789ada16adec38fb0d2
parent: 859d66fabf8b673904a70e1f603e82b230092692
author: James Zern <jzern@google.com>
date: Thu Jul 23 16:29:05 EDT 2020
Merge "libs.mk: quiet curl output"
--- a/libs.mk
+++ b/libs.mk
@@ -490,16 +490,17 @@
@echo $(LIBVPX_TEST_SRCS) | xargs -n1 echo | LC_ALL=C sort -u > $@
CLEAN-OBJS += libvpx_test_srcs.txt
+# Attempt to download the file using curl, retrying once if it fails for a
+# partial file (18).
$(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1
@echo " [DOWNLOAD] $@"
- # Attempt to download the file using curl, retrying once if it fails for a
- # partial file (18).
$(qexec)( \
trap 'rm -f $@' INT TERM; \
- curl="curl --retry 1 -L -o $@ $(call libvpx_test_data_url,$(@F))"; \
- $$curl; \
- case "$$?" in \
- 18) $$curl -C -;; \
+ curl="curl -S -s --retry 1 -L -o $@ $(call libvpx_test_data_url,$(@F))"; \
+ $$curl; ret=$$?; \
+ case "$$ret" in \
+ 18) $$curl -C - ;; \
+ *) exit $$ret ;; \
esac \
)