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