sstate: Fix broken plaindirs support

When installing a sstate package, directories tracked by plaindirs were being installed
to the incorrect location. With the current implementation this was limited to
the do_package task.

This patch ensures plaindirs tracked files are created in the correct location, fixing
the bug where these files would go missing.

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2010-10-22 12:51:35 +01:00
parent 08425b597c
commit f806c499c0
1 changed files with 6 additions and 2 deletions

View File

@ -154,8 +154,12 @@ def sstate_installpkg(ss, d):
sstate_install(ss, d)
for plain in ss['plaindirs']:
bb.mkdirhier(sstateinst + plain)
oe.path.copytree(sstateinst + plain, bb.data.getVar('WORKDIR', d, True) + plain)
workdir = d.getVar('WORKDIR', True)
src = sstateinst + "/" + plain.replace(workdir, '')
dest = plain
bb.mkdirhier(src)
bb.mkdirhier(dest)
oe.path.copytree(src, dest)
return True