rm_work: now that packaged-staging knows about rm_work we can make it more potent...
authorKoen Kooi <koen@openembedded.org>
Sat, 14 Jun 2008 11:17:23 +0000 (11:17 +0000)
committerKoen Kooi <koen@openembedded.org>
Sat, 14 Jun 2008 11:17:23 +0000 (11:17 +0000)
classes/rm_work.bbclass

index 917fadd..094f916 100644 (file)
@@ -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
 }