rm_work: Retain package and package-split directories to be consistent with sstate code

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-02-03 11:34:04 +00:00
parent 4b793fff8e
commit 1a559cbcca

View 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