mirror of
https://git.yoctoproject.org/poky
synced 2026-07-15 15:37:03 +00:00
getVar/setVar cleanups
Complete the bb.data.getVar/setVar replacements with accesses directly to the data store object. (From OE-Core rev: 2864ff6a4b3c3f9b3bbb6d2597243cc5d3715939) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -29,13 +29,13 @@ python do_distribute_sources () {
|
||||
if url.basename == '*':
|
||||
import os.path
|
||||
dest_dir = os.path.basename(os.path.dirname(os.path.abspath(url.localpath)))
|
||||
bb.data.setVar('DEST', "%s_%s/" % (d.getVar('PF', 1), dest_dir), d)
|
||||
d.setVar('DEST', "%s_%s/" % (d.getVar('PF', 1), dest_dir))
|
||||
else:
|
||||
bb.data.setVar('DEST', "%s_%s" % (d.getVar('PF', 1), url.basename), d)
|
||||
d.setVar('DEST', "%s_%s" % (d.getVar('PF', 1), url.basename))
|
||||
else:
|
||||
d.setVar('DEST', '')
|
||||
|
||||
bb.data.setVar('SRC_DISTRIBUTEDIR', "%s/%s" % (sources_dir, license), d)
|
||||
d.setVar('SRC_DISTRIBUTEDIR', "%s/%s" % (sources_dir, license))
|
||||
bb.build.exec_func('SRC_DISTRIBUTECOMMAND', d)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user