tazpkg rev 464

Add usage about new command: up
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 08 14:49:10 2011 +0200 (2011-04-08)
parents 92d42930b89c
children 136503e50bf2
files tazpkg
line diff
     1.1 --- a/tazpkg	Thu Apr 07 05:53:50 2011 +0000
     1.2 +++ b/tazpkg	Fri Apr 08 14:49:10 2011 +0200
     1.3 @@ -105,11 +105,12 @@
     1.4    extract          `gettext \"Extract a (*.tazpkg) package into a directory.\"`
     1.5    pack             `gettext \"Pack an unpacked or prepared package tree.\"`
     1.6    recharge         `gettext \"Recharge your packages.list from the mirror.\"`
     1.7 +  up|--help-up     `gettext \"Check packges md5sum to list and install latest upgrade.\"`
     1.8    repack           `gettext \"Create a package archive from an installed package.\"`
     1.9    repack-config    `gettext \"Create a package archive with configuration files.\"`
    1.10    recompress       `gettext \"Rebuild a package with a better compression ratio.\"`
    1.11 -  upgrade          `gettext \"Upgrade one or all installed/listed package(s) on the mirror.\"`
    1.12 -  upgradeable      `gettext \"Build upgradeable packages list quickly.\"`
    1.13 +  upgrade          `gettext \"Upgrade one or all installed package(s) (obsolete).\"`
    1.14 +  upgradeable      `gettext \"Build upgradeable packages list quickly. (buggy)\"`
    1.15    block|unblock    `gettext \"Block an installed package version or unblock it for upgrade.\"`
    1.16    get              `gettext \"Download a package into the current directory.\"`
    1.17    get-install      `gettext \"Download and install a package from the mirror.\"`
    1.18 @@ -131,6 +132,22 @@
    1.19    reconfigure      `gettext \"Replay post install script from package.\"`"
    1.20  }
    1.21  
    1.22 +usage_up() {
    1.23 +	echo -e "`gettext ""`
    1.24 +\033[1m`gettext \"Tazpkg usage for command up\"`:\033[0m `gettext \"tazpkg up [--option]`\n
    1.25 +* `gettext \"Without options run in interactive mode and ask before install\"`
    1.26 +
    1.27 +\033[1m`gettext \"Where options are\"`: \033[0m
    1.28 +  --check    |-c   `gettext \"Check only for avalaible upgrade\"`
    1.29 +  --recharge |-r   `gettext \"Force recharge of packages list and check\"`
    1.30 +  --install  |-i   `gettext \"Check for upgrade and install them all\"`
    1.31 +
    1.32 +\033[1m`gettext \"Example\"`: \033[0m
    1.33 +  tazpkg up --recharge --install
    1.34 +  tazpkg up -c -r
    1.35 +"
    1.36 +}
    1.37 +
    1.38  # Check for a package name on cmdline.
    1.39  check_for_package_on_cmdline()
    1.40  {