diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-12 15:52:07 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-12 15:52:07 +0100 |
commit | 99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4 (patch) | |
tree | 51e4bc4b060d2aa13f2d0ff97b86059fc51ce4ad /meta/classes | |
parent | 1958497f00d0cac11f624ea3e1ac5e54be0014b7 (diff) | |
download | openembedded-core-99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4.tar.gz openembedded-core-99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4.tar.bz2 openembedded-core-99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4.zip |
rm_work: Fix interaction issues with pseudo
This class needs to wipe out the contents of the pseudo database but also
ensure the pseudo directory exists for any subsequent tasks and also ensure
any pseudo server has shut down before removing the database. This patch
does all of these things.
[BUGID #222]
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rm_work.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 998172e0c0..1600fc8177 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass @@ -10,15 +10,20 @@ RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" BB_DEFAULT_TASK = "rm_work_all" do_rm_work () { + # Ensure pseudo is no longer active + ${FAKEROOT} -S cd ${WORKDIR} for dir in * do if [ `basename ${S}` = $dir ]; then rm -rf $dir - elif [ $dir != 'temp' -a $dir != 'pseudo' ]; then + elif [ $dir != 'temp' ]; then rm -rf $dir fi done + # Need to add pseudo back or subsqeuent work in this workdir + # might fail since setscene may not rerun to recreate it + mkdir ${WORKDIR}/pseudo/ } addtask rm_work after do_${RMWORK_ORIG_TASK} |