summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-17 09:02:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-17 22:32:04 +0000
commit7e629a36c9c401c7ccd9a550301f8f2c927d6b6a (patch)
tree7c4f40dc557f8ae9862b9d2831337461649bd265 /meta/classes
parent398a6dcc84cc64cbee6bb991cbd1ac566b6d65d3 (diff)
downloadpoky-7e629a36c9c401c7ccd9a550301f8f2c927d6b6a.tar.gz
package_tar: bb.mkdirhier -> bb.utils.mkdirhier
Fix deprecated function reference. (From OE-Core rev: 9e7a6492010aa2de65310d6fa13290068e7cadb1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_tar.bbclass8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/package_tar.bbclass b/meta/classes/package_tar.bbclass
index 475c898daf..27cddaacd1 100644
--- a/meta/classes/package_tar.bbclass
+++ b/meta/classes/package_tar.bbclass
@@ -19,13 +19,13 @@ python do_package_tar () {
19 if not outdir: 19 if not outdir:
20 bb.error("DEPLOY_DIR_TAR not defined, unable to package") 20 bb.error("DEPLOY_DIR_TAR not defined, unable to package")
21 return 21 return
22 bb.mkdirhier(outdir) 22 bb.utils.mkdirhier(outdir)
23 23
24 dvar = d.getVar('D', True) 24 dvar = d.getVar('D', True)
25 if not dvar: 25 if not dvar:
26 bb.error("D not defined, unable to package") 26 bb.error("D not defined, unable to package")
27 return 27 return
28 bb.mkdirhier(dvar) 28 bb.utils.mkdirhier(dvar)
29 29
30 packages = d.getVar('PACKAGES', True) 30 packages = d.getVar('PACKAGES', True)
31 if not packages: 31 if not packages:
@@ -49,10 +49,10 @@ python do_package_tar () {
49 bb.data.update_data(localdata) 49 bb.data.update_data(localdata)
50 50
51 root = localdata.getVar('ROOT') 51 root = localdata.getVar('ROOT')
52 bb.mkdirhier(root) 52 bb.utils.mkdirhier(root)
53 basedir = os.path.dirname(root) 53 basedir = os.path.dirname(root)
54 pkgoutdir = outdir 54 pkgoutdir = outdir
55 bb.mkdirhier(pkgoutdir) 55 bb.utils.mkdirhier(pkgoutdir)
56 bb.build.exec_func('package_tar_fn', localdata) 56 bb.build.exec_func('package_tar_fn', localdata)
57 tarfn = localdata.getVar('PKGFN', True) 57 tarfn = localdata.getVar('PKGFN', True)
58 os.chdir(root) 58 os.chdir(root)