Patchwork package_tar: bb.mkdirhier -> bb.utils.mkdirhier

login
register
mail settings
Submitter Richard Purdie
Date Feb. 17, 2013, 9:02 a.m.
Message ID <1361091745.31795.114.camel@ted>
Download mbox | patch
Permalink /patch/44745/
State Accepted
Commit 9e7a6492010aa2de65310d6fa13290068e7cadb1
Headers show

Comments

Richard Purdie - Feb. 17, 2013, 9:02 a.m.
Fix deprecated function reference.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

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 () {
     if not outdir:
         bb.error("DEPLOY_DIR_TAR not defined, unable to package")
         return
-    bb.mkdirhier(outdir)
+    bb.utils.mkdirhier(outdir)
 
     dvar = d.getVar('D', True)
     if not dvar:
         bb.error("D not defined, unable to package")
         return
-    bb.mkdirhier(dvar)
+    bb.utils.mkdirhier(dvar)
 
     packages = d.getVar('PACKAGES', True)
     if not packages:
@@ -49,10 +49,10 @@  python do_package_tar () {
         bb.data.update_data(localdata)
 
         root = localdata.getVar('ROOT')
-        bb.mkdirhier(root)
+        bb.utils.mkdirhier(root)
         basedir = os.path.dirname(root)
         pkgoutdir = outdir
-        bb.mkdirhier(pkgoutdir)
+        bb.utils.mkdirhier(pkgoutdir)
         bb.build.exec_func('package_tar_fn', localdata)
         tarfn = localdata.getVar('PKGFN', True)
         os.chdir(root)