pkg-download.mk: Add missing argument when downloading from primary mirror (scp)
authorThomas De Schampheleire <patrickdepinguin+buildroot@gmail.com>
Wed, 23 May 2012 09:30:36 +0000 (09:30 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 23 May 2012 19:49:40 +0000 (21:49 +0200)
This problem was already fixed by Markos Chandras for wget, but not for scp.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/pkg-download.mk

index b833de9e0e4a7090402281bbec7dc6ef5c572dd0..7d1e5437584ee59de17fd83f272e15fd835bee37 100644 (file)
@@ -206,7 +206,7 @@ endef
 define DOWNLOAD_INNER
        $(Q)if test -n "$(call qstrip,$(BR2_PRIMARY_SITE))" ; then \
                case "$(call geturischeme,$(BR2_PRIMARY_SITE))" in \
-                       scp) $(call $(DL_MODE)_SCP,$(BR2_PRIMARY_SITE),$(2)) && exit ;; \
+                       scp) $(call $(DL_MODE)_SCP,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
                        *) $(call $(DL_MODE)_WGET,$(BR2_PRIMARY_SITE)/$(2),$(2)) && exit ;; \
                esac ; \
        fi ; \