summaryrefslogtreecommitdiff
path: root/classes/rm_work.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/rm_work.bbclass')
-rw-r--r--classes/rm_work.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/classes/rm_work.bbclass b/classes/rm_work.bbclass
index 917fadd750..094f9167bb 100644
--- a/classes/rm_work.bbclass
+++ b/classes/rm_work.bbclass
@@ -17,8 +17,10 @@ do_rm_work () {
cd ${WORKDIR}
for dir in *
do
- if [ `basename ${S}` = $dir ]; then
- rm -rf $dir
+ if [ `basename ${dir}` = "temp" ]; then
+ echo "Not removing temp"
+ else
+ echo "Removing $dir" ; rm $dir -rf
fi
done
}