diff options
-rw-r--r-- | meta/classes/rm_work.bbclass | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 1642af7936..f0f6d18249 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass | |||
@@ -30,15 +30,18 @@ do_rm_work () { | |||
30 | cd ${WORKDIR} | 30 | cd ${WORKDIR} |
31 | for dir in * | 31 | for dir in * |
32 | do | 32 | do |
33 | # Retain only logs and other files in temp. | 33 | # Retain only logs and other files in temp, safely ignore |
34 | if [ $dir != 'temp' ]; then | 34 | # failures of removing pseudo folers on NFS2/3 server. |
35 | if [ $dir = 'pseudo' ]; then | ||
36 | rm -rf $dir 2> /dev/null || true | ||
37 | elif [ $dir != 'temp' ]; then | ||
35 | rm -rf $dir | 38 | rm -rf $dir |
36 | fi | 39 | fi |
37 | done | 40 | done |
38 | 41 | ||
39 | # Need to add pseudo back or subsqeuent work in this workdir | 42 | # Need to add pseudo back or subsqeuent work in this workdir |
40 | # might fail since setscene may not rerun to recreate it | 43 | # might fail since setscene may not rerun to recreate it |
41 | mkdir ${WORKDIR}/pseudo/ | 44 | mkdir -p ${WORKDIR}/pseudo/ |
42 | 45 | ||
43 | # Change normal stamps into setscene stamps as they better reflect the | 46 | # Change normal stamps into setscene stamps as they better reflect the |
44 | # fact WORKDIR is now empty | 47 | # fact WORKDIR is now empty |