]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: fetch2/wget: Fix downloadfilename functionality
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Mar 2014 18:11:30 +0000 (11:11 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Mar 2014 19:07:01 +0000 (12:07 -0700)
Some of the previous cleanups broke the downloadfilename functionality.
This change fixes the code to ensure the commandline is correctly built.

Thanks Kristof Robot <krirobo@gmail.com> for reporting the issue.

(Bitbake rev: e008d9bb07e5d1a3584cc04ca2cd3dd906fd5759)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/wget.py

index ffd608f213b049cfcbc3a906ab2c051b9b366712..04564903682b3d884c18091e08022ed3901d7828 100644 (file)
@@ -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)