# HG changeset patch # User Antoine Bodin # Date 1296439819 -3600 # Node ID ee704af5304a55c414b5f8f2f8f6a1283df73eeb # Parent 0215ceb46bce2f596d27324059a96edeefc207d9 Fix: use clean-chroot to ensure no more depends are left in cooking environnment diff -r 0215ceb46bce -r ee704af5304a tazwok --- a/tazwok Mon Jan 31 03:08:09 2011 +0100 +++ b/tazwok Mon Jan 31 03:10:19 2011 +0100 @@ -1797,8 +1797,11 @@ # Remove build_depends in cook mode (if in cooklist, it's done when # checking build_depends of next package and we remove only unneeded # packages to keep chroot minimal and gain some time). - [ "$COMMAND" = cook ] && remove_build_depends $MISSING_PACKAGE - + if [ "$COMMAND" = cook ]; then + remove_build_depends $MISSING_PACKAGE + [ -x /usr/bin/clean-chroot ] && clean-chroot + fi + # Regen the cooklist if it was planned and command is not cook. [ "$regen_cooklist" ] && unset regen_cooklist && \ [ "$COMMAND" != cook ] && sort_cooklist @@ -1827,6 +1830,7 @@ cook done remove_build_depends $MISSING_PACKAGE $remove_later + [ -x /usr/bin/clean-chroot ] && clean-chroot else echo "Nothing to cook." return