]> code.ossystems Code Review - openembedded-core.git/commitdiff
rm_work: Retain package and package-split directories to be consistent with sstate...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Feb 2011 11:34:04 +0000 (11:34 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 3 Feb 2011 11:34:04 +0000 (11:34 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rm_work.bbclass

index 501583cdc985f10856ecbbb153f77468cb169bae..7cbdb176238d8b99d45981a1e843672104ed04f4 100644 (file)
@@ -19,7 +19,10 @@ do_rm_work () {
     do
         if [ `basename ${S}` = $dir ]; then
             rm -rf $dir
-        elif [ $dir != 'temp' ]; then
+        # The package and package-split directories are retained by sstate for 
+        # do_package so we retain them here too. Anything in sstate 'plaindirs' 
+        # should be retained. Also retain logs and other files in temp.
+        elif [ $dir != 'temp' ] && [ $dir != 'package' ]  && [ $dir != 'package-split' ]; then
             rm -rf $dir
         fi
     done