diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/local.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/local.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/bitbake/lib/bb/fetch2/local.py b/bitbake/lib/bb/fetch2/local.py index e7d1c8c58f..0bb987c644 100644 --- a/bitbake/lib/bb/fetch2/local.py +++ b/bitbake/lib/bb/fetch2/local.py | |||
| @@ -57,12 +57,6 @@ class Local(FetchMethod): | |||
| 57 | logger.debug2("Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":")))) | 57 | logger.debug2("Searching for %s in paths:\n %s" % (path, "\n ".join(filespath.split(":")))) |
| 58 | newpath, hist = bb.utils.which(filespath, path, history=True) | 58 | newpath, hist = bb.utils.which(filespath, path, history=True) |
| 59 | searched.extend(hist) | 59 | searched.extend(hist) |
| 60 | if not os.path.exists(newpath): | ||
| 61 | dldirfile = os.path.join(d.getVar("DL_DIR"), path) | ||
| 62 | logger.debug2("Defaulting to %s for %s" % (dldirfile, path)) | ||
| 63 | bb.utils.mkdirhier(os.path.dirname(dldirfile)) | ||
| 64 | searched.append(dldirfile) | ||
| 65 | return searched | ||
| 66 | return searched | 60 | return searched |
| 67 | 61 | ||
| 68 | def need_update(self, ud, d): | 62 | def need_update(self, ud, d): |
| @@ -78,8 +72,6 @@ class Local(FetchMethod): | |||
| 78 | filespath = d.getVar('FILESPATH') | 72 | filespath = d.getVar('FILESPATH') |
| 79 | if filespath: | 73 | if filespath: |
| 80 | locations = filespath.split(":") | 74 | locations = filespath.split(":") |
| 81 | locations.append(d.getVar("DL_DIR")) | ||
| 82 | |||
| 83 | msg = "Unable to find file " + urldata.url + " anywhere. The paths that were searched were:\n " + "\n ".join(locations) | 75 | msg = "Unable to find file " + urldata.url + " anywhere. The paths that were searched were:\n " + "\n ".join(locations) |
| 84 | raise FetchError(msg) | 76 | raise FetchError(msg) |
| 85 | 77 | ||
