projects
/
openwrt
/
staging
/
adrian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8977571
)
build: add locking for downloads (fixes race conditions with multiple variants)
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Jan 2016 21:31:50 +0000
(21:31 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 20 Jan 2016 21:31:50 +0000
(21:31 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48416
include/download.mk
patch
|
blob
|
history
diff --git
a/include/download.mk
b/include/download.mk
index ca5eee4e028984e7de9c939bae7f92178a57a888..ffde522923633ebc143b9bf4aa364d7b9346352f 100644
(file)
--- a/
include/download.mk
+++ b/
include/download.mk
@@
-182,6
+182,6
@@
define Download
$(DL_DIR)/$(FILE):
mkdir -p $(DL_DIR)
- $(
if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/unknown
))
+ $(
call locked,$(if $(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/$(call dl_method,$(URL),$(PROTO))),$(DownloadMethod/unknown)),$(FILE
))
endef