tazwok rev 210

Fix: use clean-chroot to ensure no more depends are left in cooking environnment
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 31 03:10:19 2011 +0100 (2011-01-31)
parents 0215ceb46bce
children 0311568a66bb
files tazwok
line diff
     1.1 --- a/tazwok	Mon Jan 31 03:08:09 2011 +0100
     1.2 +++ b/tazwok	Mon Jan 31 03:10:19 2011 +0100
     1.3 @@ -1797,8 +1797,11 @@
     1.4  	# Remove build_depends in cook mode (if in cooklist, it's done when
     1.5  	# checking build_depends of next package and we remove only unneeded
     1.6  	# packages to keep chroot minimal and gain some time).
     1.7 -	[ "$COMMAND" = cook ] && remove_build_depends $MISSING_PACKAGE
     1.8 -
     1.9 +	if [ "$COMMAND" = cook ]; then
    1.10 +		remove_build_depends $MISSING_PACKAGE
    1.11 +		[ -x /usr/bin/clean-chroot ] && clean-chroot
    1.12 +	fi
    1.13 +	
    1.14  	# Regen the cooklist if it was planned and command is not cook.
    1.15  	[ "$regen_cooklist" ] && unset regen_cooklist && \
    1.16  		[ "$COMMAND" != cook ] && sort_cooklist
    1.17 @@ -1827,6 +1830,7 @@
    1.18  			cook
    1.19  		done
    1.20  		remove_build_depends $MISSING_PACKAGE $remove_later
    1.21 +		[ -x /usr/bin/clean-chroot ] && clean-chroot
    1.22  	else
    1.23  		echo "Nothing to cook."
    1.24  		return