Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/next] DOWNLOAD_WGET: use -O instead of -P to set output file
@ 2012-02-14 11:07 Peter Korsgaard
  2012-02-14 15:53 ` Spenser Gilliland
  0 siblings, 1 reply; 9+ messages in thread
From: Peter Korsgaard @ 2012-02-14 11:07 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=cf2486bf317e4bbf88c801fb96183ba62be78cc8
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/next

Some URLs use url-encoded arguments to specify the file to download.
Wget will then use an output file name which includes all the ampersands
and such.  However, this is not what we see from buildroot.

E.g.:
FOO_SITE="http://git.foo.com/?p=foo.git;a=blob;f="
FOO_SOURCE="foo.tgz"

wget will download this into $(DL_DIR)/index.html?p=foo.git;a=blob;f=foo.tgz
buildroot thinks it's in $(DL_DIR)/foo.tgz

To make sure the view of wget and buildroot are consistent, specify
the output file explicitly.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/Makefile.package.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index 33461b4..ea44c6c 100644
--- a/package/Makefile.package.in
+++ b/package/Makefile.package.in
@@ -238,7 +238,7 @@ endef
 
 define DOWNLOAD_WGET
 	test -e $(DL_DIR)/$(2) || \
-	$(WGET) -P $(DL_DIR) $(call qstrip,$(1))/$(2)
+	$(WGET) -O $(DL_DIR)/$(2) $(call qstrip,$(1))/$(2)
 endef
 
 define SOURCE_CHECK_WGET

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-02-14 22:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14 11:07 [Buildroot] [git commit branch/next] DOWNLOAD_WGET: use -O instead of -P to set output file Peter Korsgaard
2012-02-14 15:53 ` Spenser Gilliland
2012-02-14 15:55   ` Alvaro Gamez
2012-02-14 16:01     ` Peter Korsgaard
2012-02-14 16:14       ` Spenser Gilliland
2012-02-14 16:30         ` Peter Korsgaard
2012-02-14 17:54           ` Spenser Gilliland
2012-02-14 22:33             ` Peter Korsgaard
2012-02-14 22:59             ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox