diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-03 23:14:56 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-07 09:06:35 +0000 |
| commit | 604037de4bc3826b9b7c60eb2e7efc7788363cad (patch) | |
| tree | 7e8bbd7b642f4d4db7f720a578002ce182807b0d | |
| parent | 8daab5b95157dda6854fe6bf1929f911fe3cf25e (diff) | |
| download | poky-604037de4bc3826b9b7c60eb2e7efc7788363cad.tar.gz | |
base.bbclass: Update after fetcher changes
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/base.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 42291557b0..d8efcc0f8c 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass | |||
| @@ -245,7 +245,7 @@ python base_do_unpack() { | |||
| 245 | localdata = bb.data.createCopy(d) | 245 | localdata = bb.data.createCopy(d) |
| 246 | bb.data.update_data(localdata) | 246 | bb.data.update_data(localdata) |
| 247 | 247 | ||
| 248 | urldata = bb.fetch.init([], localdata, True) | 248 | urldata = bb.fetch.init([], localdata) |
| 249 | 249 | ||
| 250 | src_uri = bb.data.getVar('SRC_URI', localdata, True) | 250 | src_uri = bb.data.getVar('SRC_URI', localdata, True) |
| 251 | if not src_uri: | 251 | if not src_uri: |
| @@ -258,7 +258,10 @@ python base_do_unpack() { | |||
| 258 | if local is None: | 258 | if local is None: |
| 259 | continue | 259 | continue |
| 260 | local = os.path.realpath(local) | 260 | local = os.path.realpath(local) |
| 261 | lf = bb.utils.lockfile(urldata[url].lockfile) | 261 | lockfile = urldata[url].lockfile |
| 262 | if lockfile: | ||
| 263 | lf = bb.utils.lockfile(urldata[url].lockfile) | ||
| 264 | |||
| 262 | if bb.fetch.__version__ == "1": | 265 | if bb.fetch.__version__ == "1": |
| 263 | ret = oe_unpack_file(local, localdata, url) | 266 | ret = oe_unpack_file(local, localdata, url) |
| 264 | else: | 267 | else: |
| @@ -266,7 +269,8 @@ python base_do_unpack() { | |||
| 266 | ud = urldata[url] | 269 | ud = urldata[url] |
| 267 | rootdir = bb.data.getVar('WORKDIR', localdata, True) | 270 | rootdir = bb.data.getVar('WORKDIR', localdata, True) |
| 268 | ret = ud.method.unpack(ud, rootdir, localdata) | 271 | ret = ud.method.unpack(ud, rootdir, localdata) |
| 269 | bb.utils.unlockfile(lf) | 272 | if lockfile: |
| 273 | bb.utils.unlockfile(lf) | ||
| 270 | if not ret: | 274 | if not ret: |
| 271 | raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret) | 275 | raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret) |
| 272 | } | 276 | } |
