aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-01-01 12:09:42 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-01-25 13:22:13 +0200
commit3dfc9d3303a2fe35ebd6e7fd41e61726d209b671 (patch)
treebdb89054daba8a22ef4793951fdd16a99b7a8b38
parentc206c0efae08c82f1352f94cf52c510a213afd25 (diff)
downloadapk-tools-3dfc9d3303a2fe35ebd6e7fd41e61726d209b671.tar.gz
apk-tools-3dfc9d3303a2fe35ebd6e7fd41e61726d209b671.tar.bz2
apk-tools-3dfc9d3303a2fe35ebd6e7fd41e61726d209b671.tar.xz
url: use always busybox wget
I think there used to be problems with using http_proxy on bb wget, but those have been fixed for quite some time. This fixes #347. We should probably use libcurl or similar library eventually, but I'm not entirely sure if/when we want that. (cherry picked from commit aae0a563edc21030c08fd47e30e78eda22183027)
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/url.c b/src/url.c
index acfb4fc..d007860 100644
--- a/src/url.c
+++ b/src/url.c
@@ -70,7 +70,7 @@ static int fork_wget(const char *url, pid_t *ppid)
close(fds[0]);
dup2(open("/dev/null", O_RDONLY), STDIN_FILENO);
dup2(fds[1], STDOUT_FILENO);
- execlp("wget", "wget", "-q", "-O", "-", url, NULL);
+ execlp("busybox", "wget", "-q", "-O", "-", url, NULL);
exit(0);
}