Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/daemon/client/include/mage.client.class

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1248 by niro, Wed Feb 2 20:20:24 2011 UTC revision 1337 by niro, Thu Feb 17 20:19:09 2011 UTC
# Line 39  help_mage_package() Line 39  help_mage_package()
39   mecho " methods:"   mecho " methods:"
40   mecho "   install   - installs given package"   mecho "   install   - installs given package"
41   mecho "   uninstall - uninstalls given package"   mecho "   uninstall - uninstalls given package"
42     mecho "   update    - updates the package database"
43     mecho "   upgrade   - upgrades the whole system"
44   mecho "or"   mecho "or"
45   mecho "get mage.package [method] [package]"   mecho "get mage.package [method] [package]"
46   mecho " package information operations"   mecho " package information operations"
# Line 52  set_mage_package() Line 54  set_mage_package()
54   local method="$1"   local method="$1"
55   local package="$2"   local package="$2"
56   [[ -z ${method} ]] && help_mage_package && return 1   [[ -z ${method} ]] && help_mage_package && return 1
  [[ -z ${package} ]] && help_mage_package && return 1  
57    
58   case ${method} in   case ${method} in
59   install|uninstall) mage "${method}" "${package}" && mecho "done" || mecho "failed" ;;   install|uninstall)
60     [[ -z ${package} ]] && help_mage_package && return
61     mage "${method}" "${package}" && mecho "done" || mecho "failed"
62     ;;
63     update|upgrade)
64     mage "${method}" && mecho "done" || mecho "failed"
65     ;;
66   *) help_mage_package && return 1 ;;   *) help_mage_package && return 1 ;;
67   esac   esac
68  }  }

Legend:
Removed from v.1248  
changed lines
  Added in v.1337