summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 54a1dcd013..f8ce1232cd 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -242,6 +242,8 @@ python base_do_unpack() {
242 localdata = bb.data.createCopy(d) 242 localdata = bb.data.createCopy(d)
243 bb.data.update_data(localdata) 243 bb.data.update_data(localdata)
244 244
245 urldata = bb.fetch.init([], localdata, True)
246
245 src_uri = bb.data.getVar('SRC_URI', localdata, True) 247 src_uri = bb.data.getVar('SRC_URI', localdata, True)
246 if not src_uri: 248 if not src_uri:
247 return 249 return
@@ -253,7 +255,9 @@ python base_do_unpack() {
253 if local is None: 255 if local is None:
254 continue 256 continue
255 local = os.path.realpath(local) 257 local = os.path.realpath(local)
258 lf = bb.utils.lockfile(urldata[url].lockfile)
256 ret = oe_unpack_file(local, localdata, url) 259 ret = oe_unpack_file(local, localdata, url)
260 bb.utils.unlockfile(lf)
257 if not ret: 261 if not ret:
258 raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret) 262 raise bb.build.FuncFailed("oe_unpack_file failed with return value %s" % ret)
259} 263}