History

Merge "libs.mk: quiet curl output"

James Zern committed 6 years ago

Commit dbe00bb2 parents 7a92a78 859d66f1 file · +7 −6Browse files

Unified · Split

libs.mk+7−6
@@ -490,16 +490,17 @@ libvpx_test_srcs.txt: · 489 unmodified lines
490490 @echo $(LIBVPX_TEST_SRCS) | xargs -n1 echo | LC_ALL=C sort -u > $@
491491 CLEAN-OBJS += libvpx_test_srcs.txt
492492
493+# Attempt to download the file using curl, retrying once if it fails for a
494+# partial file (18).
493495 $(LIBVPX_TEST_DATA): $(SRC_PATH_BARE)/test/test-data.sha1
494496 @echo " [DOWNLOAD] $@"
495− # Attempt to download the file using curl, retrying once if it fails for a
496− # partial file (18).
497497 $(qexec)( \
498498 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 ;; \
503504 esac \
504505 )
505506

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t