# HG changeset patch # User Christophe Lincoln # Date 1204025359 -3600 # Node ID e01987ae0c21059d0adb8c06a764ce3cb0b28abd # Parent 1123ce59252c2426fed4945e2802ff1d25c66dae Allow install of all missing BUILD_DEPENDS diff -r 1123ce59252c -r e01987ae0c21 tazwok --- a/tazwok Tue Feb 26 11:13:53 2008 +0100 +++ b/tazwok Tue Feb 26 12:29:19 2008 +0100 @@ -189,7 +189,7 @@ } -# Check for build dependencies and notify user. +# Check for build dependencies, notify user and install if specified. check_for_build_depends() { echo "Checking for build dependencies..." @@ -209,13 +209,21 @@ fi done echo "================================================================================" - echo "You can continue or exit to install missing dependencies." - echo -n "Continue or exit (y/N) ? "; read anser - if [ "$anser" == "y" ]; then - continue - else - exit 0 - fi + echo "You can continue, exit or install missing dependencies." + echo -n "Install, continue or exit (install/y/N) ? "; read anser + case $anser in + install) + for pkg in $BUILD_DEPENDS + do + if [ ! -d "/var/lib/tazpkg/installed/$pkg" ]; then + tazpkg get-install $pkg + fi + done ;; + y|yes) + continue ;; + *) + exit 0 ;; + esac fi }