summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-01 08:52:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-01 15:51:42 +0100
commit554c892ccf16ca564e7be94f84eaa73667170e15 (patch)
tree01b74616570ebd473abf6bb287cdfcfbd797d41b /meta/classes/package_rpm.bbclass
parent6d9e3a19384cbd737fdac729c6c0de5b06f8ec12 (diff)
downloadpoky-554c892ccf16ca564e7be94f84eaa73667170e15.tar.gz
meta: Don't use deprecated bitbake API
These have been deprecated for a long time, convert the remaining references to the correct modules and prepare for removal of the compatibility support from bitbake. (From OE-Core rev: 6a39835af2b2b3c7797fe05479341d71a3f3aaf6) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index b29d3edb2f..cc77c5ea35 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -1069,7 +1069,7 @@ python do_package_rpm () {
1069 clean_licenses = get_licenses(d) 1069 clean_licenses = get_licenses(d)
1070 pkgwritesrpmdir = bb.data.expand('${PKGWRITEDIRSRPM}/${PACKAGE_ARCH_EXTEND}', d) 1070 pkgwritesrpmdir = bb.data.expand('${PKGWRITEDIRSRPM}/${PACKAGE_ARCH_EXTEND}', d)
1071 pkgwritesrpmdir = pkgwritesrpmdir + '/' + clean_licenses 1071 pkgwritesrpmdir = pkgwritesrpmdir + '/' + clean_licenses
1072 bb.mkdirhier(pkgwritesrpmdir) 1072 bb.utils.mkdirhier(pkgwritesrpmdir)
1073 os.chmod(pkgwritesrpmdir, 0755) 1073 os.chmod(pkgwritesrpmdir, 0755)
1074 return pkgwritesrpmdir 1074 return pkgwritesrpmdir
1075 1075
@@ -1123,7 +1123,7 @@ python do_package_rpm () {
1123 pkgwritedir = d.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}') 1123 pkgwritedir = d.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH_EXTEND}')
1124 pkgarch = d.expand('${PACKAGE_ARCH_EXTEND}${TARGET_VENDOR}-${TARGET_OS}') 1124 pkgarch = d.expand('${PACKAGE_ARCH_EXTEND}${TARGET_VENDOR}-${TARGET_OS}')
1125 magicfile = d.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc') 1125 magicfile = d.expand('${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc')
1126 bb.mkdirhier(pkgwritedir) 1126 bb.utils.mkdirhier(pkgwritedir)
1127 os.chmod(pkgwritedir, 0755) 1127 os.chmod(pkgwritedir, 0755)
1128 1128
1129 cmd = rpmbuild 1129 cmd = rpmbuild