--- mcore-src/trunk/mcore-tools/daemon/client/include/mage.client.class 2013/09/27 07:48:24 2095 +++ mcore-src/trunk/mcore-tools/daemon/client/include/mage.client.class 2013/09/27 07:48:56 2096 @@ -15,13 +15,20 @@ help_mage_update() { - mecho "set mage.update" + mecho "set mage.update [rsync|tarball]" mecho " fetches updates of the package database." } set_mage_update() { - mage update && mecho "done" || mecho "failed" + local method + case $1 in + tarball) method="update-tarball" ;; + rsync) method="update" ;; + *) method="update" ;; + esac + + mage "${method}" && mecho "done" || mecho "failed" } get_mage_upgrade()