summaryrefslogtreecommitdiffstats
path: root/meta/classes/package_tar.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_tar.bbclass')
-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 475c898..27cddaa 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)