tazwok diff tazwok @ rev 40
Allow install of all missing BUILD_DEPENDS
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Feb 26 12:29:19 2008 +0100 (2008-02-26) |
parents | 1123ce59252c |
children | 98c99cbbc97c |
line diff
1.1 --- a/tazwok Tue Feb 26 11:13:53 2008 +0100 1.2 +++ b/tazwok Tue Feb 26 12:29:19 2008 +0100 1.3 @@ -189,7 +189,7 @@ 1.4 } 1.5 1.6 1.7 -# Check for build dependencies and notify user. 1.8 +# Check for build dependencies, notify user and install if specified. 1.9 check_for_build_depends() 1.10 { 1.11 echo "Checking for build dependencies..." 1.12 @@ -209,13 +209,21 @@ 1.13 fi 1.14 done 1.15 echo "================================================================================" 1.16 - echo "You can continue or exit to install missing dependencies." 1.17 - echo -n "Continue or exit (y/N) ? "; read anser 1.18 - if [ "$anser" == "y" ]; then 1.19 - continue 1.20 - else 1.21 - exit 0 1.22 - fi 1.23 + echo "You can continue, exit or install missing dependencies." 1.24 + echo -n "Install, continue or exit (install/y/N) ? "; read anser 1.25 + case $anser in 1.26 + install) 1.27 + for pkg in $BUILD_DEPENDS 1.28 + do 1.29 + if [ ! -d "/var/lib/tazpkg/installed/$pkg" ]; then 1.30 + tazpkg get-install $pkg 1.31 + fi 1.32 + done ;; 1.33 + y|yes) 1.34 + continue ;; 1.35 + *) 1.36 + exit 0 ;; 1.37 + esac 1.38 fi 1.39 } 1.40