summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/base-passwd
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-03 11:21:22 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-03-05 18:23:53 (GMT)
commitb1aeaa8b0dcf27ef8dcd87279901c6f5817d9e94 (patch)
tree62b315fdc05e03677922a0161fdc7a39e2985466 /meta/recipes-core/base-passwd
parent22f0df2aa737bda1ae3bce862ee5ceba5b2d204b (diff)
downloadpoky-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/recipes-core/base-passwd')
-rw-r--r--meta/recipes-core/base-passwd/base-passwd_3.5.22.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
index 92ad0d9..ae3864c 100644
--- a/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
+++ b/meta/recipes-core/base-passwd/base-passwd_3.5.22.bb
@@ -63,10 +63,10 @@ python populate_packages_prepend() {
63 # time before the files from the package may be available, hence 63 # time before the files from the package may be available, hence
64 # storing the data from the files in the preinst directly. 64 # storing the data from the files in the preinst directly.
65 65
66 f = open(bb.data.expand("${STAGING_DATADIR}/base-passwd/passwd.master", d), 'r') 66 f = open(d.expand("${STAGING_DATADIR}/base-passwd/passwd.master"), 'r')
67 passwd = "".join(f.readlines()) 67 passwd = "".join(f.readlines())
68 f.close() 68 f.close()
69 f = open(bb.data.expand("${STAGING_DATADIR}/base-passwd/group.master", d), 'r') 69 f = open(d.expand("${STAGING_DATADIR}/base-passwd/group.master"), 'r')
70 group = "".join(f.readlines()) 70 group = "".join(f.readlines())
71 f.close() 71 f.close()
72 72