mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
meta: Replace bb.data.expand(xxx, d) -> d.expand(xxx)
sed \ -e 's:bb.data.\(expand([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data.expand *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -17,7 +17,7 @@ def get_src_tree(d):
|
||||
return
|
||||
|
||||
s_tree_raw = s.split('/')[1]
|
||||
s_tree = bb.data.expand(s_tree_raw, d)
|
||||
s_tree = d.expand(s_tree_raw)
|
||||
|
||||
src_tree_path = os.path.join(workdir, s_tree)
|
||||
try:
|
||||
@@ -59,7 +59,7 @@ python sourcepkg_do_dumpdata() {
|
||||
distro = d.getVar('DISTRO', True)
|
||||
s_tree = get_src_tree(d)
|
||||
openembeddeddir = os.path.join(workdir, s_tree, distro)
|
||||
dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d))
|
||||
dumpfile = os.path.join(openembeddeddir, d.expand("${P}-${PR}.showdata.dump"))
|
||||
|
||||
try:
|
||||
os.mkdir(openembeddeddir)
|
||||
|
||||
Reference in New Issue
Block a user