tazpkg rev 308
Auto install all deps by default (is set in config file)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 06 22:21:23 2010 +0100 (2010-01-06) |
parents | 3a410bbead4c |
children | 58112b03f61d |
files | tazpkg tazpkg.conf |
line diff
1.1 --- a/tazpkg Wed Jan 06 22:04:04 2010 +0100 1.2 +++ b/tazpkg Wed Jan 06 22:21:23 2010 +0100 1.3 @@ -624,18 +624,22 @@ 1.4 fi 1.5 } 1.6 1.7 -# Install all missing deps. First ask user then install all missing deps 1.8 -# from local dir, cdrom, media or from the mirror. In case we want to 1.9 +# Install all missing deps. Auto install or ask user then install all missing 1.10 +# deps from local dir, cdrom, media or from the mirror. In case we want to 1.11 # install packages from local, we need a packages.list to find the version. 1.12 install_deps() 1.13 { 1.14 local root 1.15 root="" 1.16 [ -n "$1" ] && root="--root=$1" 1.17 - echo "" 1.18 - echo -n "Install all missing dependencies (y/N) ? "; read anser 1.19 - echo "" 1.20 - if [ "$anser" = "y" ]; then 1.21 + if [ "$AUTO_INSTALL_DEPS" == "yes" ]; then 1.22 + anser="y" 1.23 + else 1.24 + echo "" 1.25 + echo -n "Install all missing dependencies (y/N) ? "; read anser 1.26 + echo "" 1.27 + fi 1.28 + if [ "$anser" == "y" ]; then 1.29 for pkgorg in $DEPENDS 1.30 do 1.31 pkg=$(equivalent_pkg $pkgorg $1)
2.1 --- a/tazpkg.conf Wed Jan 06 22:04:04 2010 +0100 2.2 +++ b/tazpkg.conf Wed Jan 06 22:21:23 2010 +0100 2.3 @@ -1,6 +1,9 @@ 2.4 # /etc/slitaz/tazpkg.conf: SliTaz package manager configuration file. 2.5 # 2.6 2.7 +# Auto-installation of packages dependencies. 2.8 +AUTO_INSTALL_DEPS="yes" 2.9 + 2.10 # Path to all packages meta files (lists, receipt, desc). 2.11 LOCALSTATE="/var/lib/tazpkg" 2.12