summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-25 14:25:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-27 10:25:34 +0000
commit0a434ac10158e2011d41a1189e65e9474b1672be (patch)
tree6171516b25cb337343a6373e34aec0d061e4f5e8 /meta/classes/package_rpm.bbclass
parent71fded5145454b144413057e11f78f718d947093 (diff)
downloadpoky-0a434ac10158e2011d41a1189e65e9474b1672be.tar.gz
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>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 75e4f2d196..93a4c3123c 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -8,7 +8,7 @@ RPMBUILD="rpmbuild"
8PKGWRITEDIRRPM = "${WORKDIR}/deploy-rpms" 8PKGWRITEDIRRPM = "${WORKDIR}/deploy-rpms"
9 9
10python package_rpm_fn () { 10python package_rpm_fn () {
11 bb.data.setVar('PKGFN', d.getVar('PKG'), d) 11 d.setVar('PKGFN', d.getVar('PKG'))
12} 12}
13 13
14python package_rpm_install () { 14python package_rpm_install () {
@@ -467,7 +467,7 @@ python write_specfile () {
467 ver = ver.replace(pv, reppv) 467 ver = ver.replace(pv, reppv)
468 newdeps_dict[dep] = ver 468 newdeps_dict[dep] = ver
469 depends = bb.utils.join_deps(newdeps_dict) 469 depends = bb.utils.join_deps(newdeps_dict)
470 bb.data.setVar(varname, depends.strip(), d) 470 d.setVar(varname, depends.strip())
471 471
472 # We need to change the style the dependency from BB to RPM 472 # We need to change the style the dependency from BB to RPM
473 # This needs to happen AFTER the mapping_rename_hook 473 # This needs to happen AFTER the mapping_rename_hook
@@ -969,7 +969,7 @@ python () {
969 deps = (d.getVarFlag('do_package_write_rpm', 'depends') or "").split() 969 deps = (d.getVarFlag('do_package_write_rpm', 'depends') or "").split()
970 deps.append('rpm-native:do_populate_sysroot') 970 deps.append('rpm-native:do_populate_sysroot')
971 deps.append('virtual/fakeroot-native:do_populate_sysroot') 971 deps.append('virtual/fakeroot-native:do_populate_sysroot')
972 bb.data.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps), d) 972 d.setVarFlag('do_package_write_rpm', 'depends', " ".join(deps))
973 d.setVarFlag('do_package_write_rpm', 'fakeroot', 1) 973 d.setVarFlag('do_package_write_rpm', 'fakeroot', 1)
974 d.setVarFlag('do_package_write_rpm_setscene', 'fakeroot', 1) 974 d.setVarFlag('do_package_write_rpm_setscene', 'fakeroot', 1)
975} 975}