From 4ae598195b60ea5a4c0a3efaded679208e1cc07e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 9 Mar 2014 11:11:30 -0700 Subject: bitbake: fetch2/wget: Fix downloadfilename functionality Some of the previous cleanups broke the downloadfilename functionality. This change fixes the code to ensure the commandline is correctly built. Thanks Kristof Robot for reporting the issue. (Bitbake rev: e008d9bb07e5d1a3584cc04ca2cd3dd906fd5759) Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/wget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch2') diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index ffd608f213..0456490368 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -79,9 +79,9 @@ class Wget(FetchMethod): uri = ud.url.split(";")[0] if os.path.exists(ud.localpath): # file exists, but we didnt complete it.. trying again.. - fetchcmd = self.basecmd + d.expand(" -c -P ${DL_DIR} '%s'" % uri) + fetchcmd += d.expand(" -c -P ${DL_DIR} '%s'" % uri) else: - fetchcmd = self.basecmd + d.expand(" -P ${DL_DIR} '%s'" % uri) + fetchcmd += d.expand(" -P ${DL_DIR} '%s'" % uri) self._runwget(ud, d, fetchcmd, False) -- cgit v1.2.3-54-g00ecf