Unified · Split
| @@ -490,16 +490,17 @@ libvpx_test_srcs.txt: · 489 unmodified lines | ||
| 490 | 490 | @echo $(LIBVPX_TEST_SRCS) | xargs -n1 echo | LC_ALL=C sort -u > $@ |
| 491 | 491 | CLEAN-OBJS += libvpx_test_srcs.txt |
| 492 | 492 | |
| 493 | +# Attempt to download the file using curl, retrying once if it fails for a | |
| 494 | +# partial file (18). | |
| 493 | 495 | $(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1 |
| 494 | 496 | @echo " [DOWNLOAD] $@" |
| 495 | − # Attempt to download the file using curl, retrying once if it fails for a | |
| 496 | − # partial file (18). | |
| 497 | 497 | $(qexec)( \ |
| 498 | 498 | trap 'rm -f $@' INT TERM; \ |
| 499 | − curl="curl --retry 1 -L -o $@ $(call libvpx_test_data_url,$(@F))"; \ | |
| 500 | − $$curl; \ | |
| 501 | − case "$$?" in \ | |
| 502 | − 18) $$curl -C -;; \ | |
| 499 | + curl="curl -S -s --retry 1 -L -o $@ $(call libvpx_test_data_url,$(@F))"; \ | |
| 500 | + $$curl; ret=$$?; \ | |
| 501 | + case "$$ret" in \ | |
| 502 | + 18) $$curl -C - ;; \ | |
| 503 | + *) exit $$ret ;; \ | |
| 503 | 504 | esac \ |
| 504 | 505 | ) |
| 505 | 506 | |