tazpkg rev 59
Adding get-install-list command.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sun Mar 16 03:15:31 2008 +0100 (2008-03-16) |
parents | c3c44b4a732d |
children | 15f2d4b9fbfe |
files | tazpkg |
line diff
1.1 --- a/tazpkg Wed Mar 05 16:40:32 2008 +0100 1.2 +++ b/tazpkg Sun Mar 16 03:15:31 2008 +0100 1.3 @@ -87,30 +87,31 @@ 1.4 \033[1mUsage:\033[0m tazpkg [command] [package|dir|pattern|list|cat|--opt] [dir|--opt] 1.5 tazpkg shell\n 1.6 \033[1mCommands: \033[0m 1.7 - usage Print this short usage. 1.8 - list List installed packages on the system by category or all. 1.9 - xhtml-list Creates a xHTML list of installed packges. 1.10 - list-mirror List all available packages on the mirror (--diff for new). 1.11 - info Print informations about the package. 1.12 - desc Print description of a package (if it exist). 1.13 - list-files List of files installed with the package. 1.14 - search Search for a package by pattern or name (options: -i|-l|-m). 1.15 - search-file Search for file(s) in all installed packages files. 1.16 - install Install a local (*.tazpkg) package (--forced to force). 1.17 - install-list Install all packages from a list of packages. 1.18 - remove Remove the specified package and all installed files. 1.19 - extract Extract a (*.tazpkg) package into a directory. 1.20 - pack Pack an unpacked or prepared package tree. 1.21 - recharge Recharge your packages.list from the mirror. 1.22 - repack Creates a package archive from an installed package. 1.23 - upgrade Upgrade all installed and listed packages on the mirror. 1.24 - block|unblock Block an installed package version or unblock it for upgrade. 1.25 - get Download a package into the current directory. 1.26 - get-install Download and install a package from the mirror. 1.27 - check Verify installed packages concistancy. 1.28 - clean-cache Clean all packages downloaded in cache directory. 1.29 - setup-mirror Change the mirror url configuration. 1.30 - reconfigure Replay post install script from package." 1.31 + usage Print this short usage. 1.32 + list List installed packages on the system by category or all. 1.33 + xhtml-list Creates a xHTML list of installed packges. 1.34 + list-mirror List all available packages on the mirror (--diff for new). 1.35 + info Print informations about the package. 1.36 + desc Print description of a package (if it exist). 1.37 + list-files List of files installed with the package. 1.38 + search Search for a package by pattern or name (options: -i|-l|-m). 1.39 + search-file Search for file(s) in all installed packages files. 1.40 + install Install a local (*.tazpkg) package (--forced to force). 1.41 + install-list Install all packages from a list of packages. 1.42 + remove Remove the specified package and all installed files. 1.43 + extract Extract a (*.tazpkg) package into a directory. 1.44 + pack Pack an unpacked or prepared package tree. 1.45 + recharge Recharge your packages.list from the mirror. 1.46 + repack Creates a package archive from an installed package. 1.47 + upgrade Upgrade all installed and listed packages on the mirror. 1.48 + block|unblock Block an installed package version or unblock it for upgrade. 1.49 + get Download a package into the current directory. 1.50 + get-install Download and install a package from the mirror. 1.51 + get-install-list Download and install a list of packages from the mirror. 1.52 + check Verify installed packages concistancy. 1.53 + clean-cache Clean all packages downloaded in cache directory. 1.54 + setup-mirror Change the mirror url configuration. 1.55 + reconfigure Replay post install script from package." 1.56 } 1.57 1.58 # Status function with color (supported by Ash). 1.59 @@ -775,7 +776,7 @@ 1.60 install_deps 1.61 fi 1.62 ;; 1.63 - install-list) 1.64 + install-list|get-install-list) 1.65 # Install a set of packages from a list. 1.66 # 1.67 check_root 1.68 @@ -792,13 +793,18 @@ 1.69 else 1.70 LIST=`cat $2` 1.71 fi 1.72 - # Install all packages. 1.73 + # Set $COMMAND and install all packages. 1.74 + if [ "$1" = "get-install-list" ]; then 1.75 + COMMAND=get-install-list 1.76 + else 1.77 + COMMAND=install 1.78 + fi 1.79 for pkg in $LIST 1.80 do 1.81 if [ "$3" = "--forced" ]; then 1.82 - tazpkg install $pkg --forced 1.83 + tazpkg $COMMAND $pkg --forced 1.84 else 1.85 - tazpkg install $pkg 1.86 + tazpkg $COMMAND $pkg 1.87 fi 1.88 done 1.89 ;;