mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
tool/depot: replace wget by curl to support file:// URLs
File-scheme URLs permit users to host downloadable archives (which may be sync'd by other means beforehand) on the local file system. Fixes #4737
This commit is contained in:
@@ -110,7 +110,7 @@ file_url = '${URL($(call archive_user,$1))}/$1'
|
||||
$(PUBLIC_DIR)/%:
|
||||
@$(ECHO) "$(DARK_COL)download$(DEFAULT_COL) $*"
|
||||
$(VERBOSE)mkdir -p $(dir $@)
|
||||
$(VERBOSE)wget --quiet --no-check-certificate $(call file_url,$*) -O $@ ||\
|
||||
$(VERBOSE)curl --silent $(call file_url,$*) -o $@ ||\
|
||||
(echo "Error: failed to download $(call file_url,$*)"; rm -f $@; false)
|
||||
|
||||
$(MAKECMDGOALS): $(TARGETS)
|
||||
|
||||
Reference in New Issue
Block a user