diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-05-09 07:05:59 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-05-23 15:53:22 +1000 |
commit | d85d2295bad5df2c5c7e44cb8c1cf87fb3cd3de8 (patch) | |
tree | 0b22169bdf565d8c20dc82ed63b42b451e9900c2 /tools/depends | |
parent | ffd5dae3489d7b74e6a42ffddd2280cb705b67a1 (diff) |
[tools/depends] download-files.include verbose curl output on retry
provides some more curl output if we fall into the failed hash retry loop
Diffstat (limited to 'tools/depends')
-rw-r--r-- | tools/depends/download-files.include | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/depends/download-files.include b/tools/depends/download-files.include index 9b09fc574e..8bbccf0dab 100644 --- a/tools/depends/download-files.include +++ b/tools/depends/download-files.include @@ -40,7 +40,7 @@ ifeq ($(HASH_FOUND),no) endif ifeq ($(HASH_FOUND),yes) # we really need 2 spaces between sha hash and file name! -# if the hash sum doesn't match we retry up to 3 times +# if the hash sum doesn't match we retry up to 3 times, add verbose curl output for diagnostics on retries @cd $(TARBALLS_LOCATION); echo "$(HASH_SUM) $(ARCHIVE)" > $(ARCHIVE).$(HASH_TYPE) && $(HASH_TOOL) $(HASH_TOOL_FLAGS) $(ARCHIVE).$(HASH_TYPE) \ || {\ echo "Error: failed to verify hash sum of $(ARCHIVE), expected type: $(HASH_TYPE) value $(HASH_SUM), retrying.." ;\ @@ -49,7 +49,7 @@ ifeq ($(HASH_FOUND),yes) echo "download $(ARCHIVE) retry $$tries" ;\ rm $(TARBALLS_LOCATION)/$(ARCHIVE) ;\ sleep 3 ;\ - $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE) ;\ + $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) -v $(BASE_URL)/$(ARCHIVE) ;\ $(HASH_TOOL) $(HASH_TOOL_FLAGS) $(ARCHIVE).$(HASH_TYPE) && exit 0 || tries=$$((tries + 1)) ;\ done ;\ exit 1 ;\ |