download.mk: properly quote download urls
authorFelix Fietkau <nbd@openwrt.org>
Sun, 13 Mar 2011 18:38:43 +0000 (18:38 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 13 Mar 2011 18:38:43 +0000 (18:38 +0000)
SVN-Revision: 26129

include/download.mk

index d1b3fc8..fd197ea 100644 (file)
@@ -41,7 +41,7 @@ define DownloadMethod/unknown
 endef
 
 define DownloadMethod/default
-       $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" $(URL)
+       $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(FILE)" "$(MD5SUM)" $(foreach url,$(URL),"$(url)")
 endef
 
 define wrap_mirror