diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 708f3a42e6..3849c8a5a1 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
| @@ -109,7 +109,8 @@ class Wget(FetchMethod): | |||
| 109 | 109 | ||
| 110 | fetchcmd = self.basecmd | 110 | fetchcmd = self.basecmd |
| 111 | 111 | ||
| 112 | localpath = os.path.join(d.getVar("DL_DIR"), ud.localfile) + ".tmp" | 112 | dldir = os.path.realpath(d.getVar("DL_DIR")) |
| 113 | localpath = os.path.join(dldir, ud.localfile) + ".tmp" | ||
| 113 | bb.utils.mkdirhier(os.path.dirname(localpath)) | 114 | bb.utils.mkdirhier(os.path.dirname(localpath)) |
| 114 | fetchcmd += " -O %s" % shlex.quote(localpath) | 115 | fetchcmd += " -O %s" % shlex.quote(localpath) |
| 115 | 116 | ||
| @@ -129,9 +130,9 @@ class Wget(FetchMethod): | |||
| 129 | uri = ud.url.split(";")[0] | 130 | uri = ud.url.split(";")[0] |
| 130 | if os.path.exists(ud.localpath): | 131 | if os.path.exists(ud.localpath): |
| 131 | # file exists, but we didnt complete it.. trying again.. | 132 | # file exists, but we didnt complete it.. trying again.. |
| 132 | fetchcmd += d.expand(" -c -P ${DL_DIR} '%s'" % uri) | 133 | fetchcmd += " -c -P " + dldir + " '" + uri + "'" |
| 133 | else: | 134 | else: |
| 134 | fetchcmd += d.expand(" -P ${DL_DIR} '%s'" % uri) | 135 | fetchcmd += " -P " + dldir + " '" + uri + "'" |
| 135 | 136 | ||
| 136 | self._runwget(ud, d, fetchcmd, False) | 137 | self._runwget(ud, d, fetchcmd, False) |
| 137 | 138 | ||
