diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-03-08 15:23:11 -0700 |
---|---|---|
committer | Chris Larson <chris_larson@mentor.com> | 2010-03-08 15:23:11 -0700 |
commit | c77f216ab2a518229795b4ee42f76372df93fe7c (patch) | |
tree | 08800a2346f09f1b3ac731bea0cc49341759796f /classes/package_ipk.bbclass | |
parent | 4d3121cbcc1ab3911884eea833cddacc46409294 (diff) |
package_ipk: ensure pkgdest/root dirs exist before the lockfile/chdir
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'classes/package_ipk.bbclass')
-rw-r--r-- | classes/package_ipk.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/package_ipk.bbclass b/classes/package_ipk.bbclass index 420c892f10..410fee30cc 100644 --- a/classes/package_ipk.bbclass +++ b/classes/package_ipk.bbclass @@ -159,11 +159,14 @@ python do_package_ipk () { if os.access(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN"), os.R_OK): os.unlink(os.path.join(tmpdir, "stamps", "IPK_PACKAGE_INDEX_CLEAN")) + pkgdest = bb.data.getVar('PKGDEST', d, 1) + bb.mkdirhier(pkgdest) + packages = bb.data.getVar('PACKAGES', d, True) for pkg in packages.split(): localdata = bb.data.createCopy(d) - pkgdest = bb.data.getVar('PKGDEST', d, 1) root = "%s/%s" % (pkgdest, pkg) + bb.mkdirhier(root) lf = bb.utils.lockfile(root + ".lock") |