# HG changeset patch # User Christophe Lincoln # Date 1262812883 -3600 # Node ID fa97de9857e0507299b79a5e4f5f2a1b64147185 # Parent 3a410bbead4cd04fe720f52d855ae9c95532a82f Auto install all deps by default (is set in config file) diff -r 3a410bbead4c -r fa97de9857e0 tazpkg --- a/tazpkg Wed Jan 06 22:04:04 2010 +0100 +++ b/tazpkg Wed Jan 06 22:21:23 2010 +0100 @@ -624,18 +624,22 @@ fi } -# Install all missing deps. First ask user then install all missing deps -# from local dir, cdrom, media or from the mirror. In case we want to +# Install all missing deps. Auto install or ask user then install all missing +# deps from local dir, cdrom, media or from the mirror. In case we want to # install packages from local, we need a packages.list to find the version. install_deps() { local root root="" [ -n "$1" ] && root="--root=$1" - echo "" - echo -n "Install all missing dependencies (y/N) ? "; read anser - echo "" - if [ "$anser" = "y" ]; then + if [ "$AUTO_INSTALL_DEPS" == "yes" ]; then + anser="y" + else + echo "" + echo -n "Install all missing dependencies (y/N) ? "; read anser + echo "" + fi + if [ "$anser" == "y" ]; then for pkgorg in $DEPENDS do pkg=$(equivalent_pkg $pkgorg $1) diff -r 3a410bbead4c -r fa97de9857e0 tazpkg.conf --- a/tazpkg.conf Wed Jan 06 22:04:04 2010 +0100 +++ b/tazpkg.conf Wed Jan 06 22:21:23 2010 +0100 @@ -1,6 +1,9 @@ # /etc/slitaz/tazpkg.conf: SliTaz package manager configuration file. # +# Auto-installation of packages dependencies. +AUTO_INSTALL_DEPS="yes" + # Path to all packages meta files (lists, receipt, desc). LOCALSTATE="/var/lib/tazpkg"