public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] rm_work: remove package and packages-split dirs
@ 2013-02-01 17:59 Martin Jansa
  2013-02-04 13:26 ` Richard Purdie
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2013-02-01 17:59 UTC (permalink / raw)
  To: openembedded-core

* as described in
  http://git.openembedded.org/openembedded-core/commit/?id=6107ee294afde395e39d084c33e8e94013c625a9

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/classes/rm_work.bbclass | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index 997dcd1..24d0679 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -19,13 +19,13 @@ do_rm_work () {
     do
         if [ `basename ${S}` = $dir ]; then
             rm -rf $dir
-        # The package and packages-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 != 'packages-split' ]; then
+        # Anything in sstate 'plaindirs' should be retained. 
+        # Also retain logs and other files in temp.
+        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/
@@ -54,6 +54,11 @@ do_rm_work () {
                 i=dummy
                 break
                 ;;
+            *do_package|*do_package_setscene)
+                i=dummy
+                rm -f $i;
+                break
+                ;;
             *_setscene*)
                 i=dummy
                 break
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-03-02  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-01 17:59 [PATCH] rm_work: remove package and packages-split dirs Martin Jansa
2013-02-04 13:26 ` Richard Purdie
2013-02-06 13:26   ` Martin Jansa
2013-02-06 13:44     ` Mike Looijmans
2013-02-06 14:06       ` Martin Jansa
2013-03-02  0:02   ` [PATCHv2] " Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox