diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-03 11:34:04 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-03 11:34:04 +0000 |
commit | 1a559cbcca083d835447ad99ce85c683e49272f6 (patch) | |
tree | 6f239ca50ca0ab78449f210bffda9a690bc978ac /meta/classes/rm_work.bbclass | |
parent | 4b793fff8ecba1e3aa8cf9abadb6fa8e0bdd84b8 (diff) | |
download | poky-1a559cbcca083d835447ad99ce85c683e49272f6.tar.gz |
rm_work: Retain package and package-split directories to be consistent with sstate code
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-rw-r--r-- | meta/classes/rm_work.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 501583cdc9..7cbdb17623 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass | |||
@@ -19,7 +19,10 @@ do_rm_work () { | |||
19 | do | 19 | do |
20 | if [ `basename ${S}` = $dir ]; then | 20 | if [ `basename ${S}` = $dir ]; then |
21 | rm -rf $dir | 21 | rm -rf $dir |
22 | elif [ $dir != 'temp' ]; then | 22 | # The package and package-split directories are retained by sstate for |
23 | # do_package so we retain them here too. Anything in sstate 'plaindirs' | ||
24 | # should be retained. Also retain logs and other files in temp. | ||
25 | elif [ $dir != 'temp' ] && [ $dir != 'package' ] && [ $dir != 'package-split' ]; then | ||
23 | rm -rf $dir | 26 | rm -rf $dir |
24 | fi | 27 | fi |
25 | done | 28 | done |