summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-03-08 15:23:11 -0700
committerChris Larson <chris_larson@mentor.com>2010-03-08 15:23:11 -0700
commitc77f216ab2a518229795b4ee42f76372df93fe7c (patch)
tree08800a2346f09f1b3ac731bea0cc49341759796f /classes
parent4d3121cbcc1ab3911884eea833cddacc46409294 (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')
-rw-r--r--classes/package_ipk.bbclass5
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")