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 2095 by niro, Wed Nov 9 13:38:36 2011 UTC revision 2096 by niro, Fri Sep 27 07:48:56 2013 UTC
# Line 15  get_mage_inventory() Line 15  get_mage_inventory()
15    
16  help_mage_update()  help_mage_update()
17  {  {
18   mecho "set mage.update"   mecho "set mage.update [rsync|tarball]"
19   mecho " fetches updates of the package database."   mecho " fetches updates of the package database."
20  }  }
21    
22  set_mage_update()  set_mage_update()
23  {  {
24   mage update && mecho "done" || mecho "failed"   local method
25     case $1 in
26     tarball) method="update-tarball" ;;
27     rsync) method="update" ;;
28     *) method="update" ;;
29     esac
30    
31     mage "${method}" && mecho "done" || mecho "failed"
32  }  }
33    
34  get_mage_upgrade()  get_mage_upgrade()

Legend:
Removed from v.2095  
changed lines
  Added in v.2096