diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-03 11:21:22 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-05 10:23:53 -0800 |
commit | b1aeaa8b0dcf27ef8dcd87279901c6f5817d9e94 (patch) | |
tree | 62b315fdc05e03677922a0161fdc7a39e2985466 /meta/classes/sourcepkg.bbclass | |
parent | 22f0df2aa737bda1ae3bce862ee5ceba5b2d204b (diff) | |
download | poky-b1aeaa8b0dcf27ef8dcd87279901c6f5817d9e94.tar.gz |
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>
Diffstat (limited to 'meta/classes/sourcepkg.bbclass')
-rw-r--r-- | meta/classes/sourcepkg.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sourcepkg.bbclass b/meta/classes/sourcepkg.bbclass index 2a78a90452..102c109324 100644 --- a/meta/classes/sourcepkg.bbclass +++ b/meta/classes/sourcepkg.bbclass | |||
@@ -17,7 +17,7 @@ def get_src_tree(d): | |||
17 | return | 17 | return |
18 | 18 | ||
19 | s_tree_raw = s.split('/')[1] | 19 | s_tree_raw = s.split('/')[1] |
20 | s_tree = bb.data.expand(s_tree_raw, d) | 20 | s_tree = d.expand(s_tree_raw) |
21 | 21 | ||
22 | src_tree_path = os.path.join(workdir, s_tree) | 22 | src_tree_path = os.path.join(workdir, s_tree) |
23 | try: | 23 | try: |
@@ -59,7 +59,7 @@ python sourcepkg_do_dumpdata() { | |||
59 | distro = d.getVar('DISTRO', True) | 59 | distro = d.getVar('DISTRO', True) |
60 | s_tree = get_src_tree(d) | 60 | s_tree = get_src_tree(d) |
61 | openembeddeddir = os.path.join(workdir, s_tree, distro) | 61 | openembeddeddir = os.path.join(workdir, s_tree, distro) |
62 | dumpfile = os.path.join(openembeddeddir, bb.data.expand("${P}-${PR}.showdata.dump",d)) | 62 | dumpfile = os.path.join(openembeddeddir, d.expand("${P}-${PR}.showdata.dump")) |
63 | 63 | ||
64 | try: | 64 | try: |
65 | os.mkdir(openembeddeddir) | 65 | os.mkdir(openembeddeddir) |