Magellan Linux

Diff of /trunk/mage/usr/lib/mage/mage4.sh

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

revision 1541 by niro, Tue Dec 20 12:58:32 2011 UTC revision 1584 by niro, Wed Dec 28 12:23:50 2011 UTC
# Line 22  die() Line 22  die()
22   source ${MLIBDIR}/mage4.functions.sh || \   source ${MLIBDIR}/mage4.functions.sh || \
23   die "mage functions missing"   die "mage functions missing"
24    
 ## only for tests -> normally in /etc/rc.d/init.d/functions  
 COLRED="\033[1;6m\033[31m"  
 COLGREEN="\033[1;6m\033[32m"  
 COLYELLOW="\033[1;6m\033[33m"  
 COLBLUE="\033[1;6m\033[34m"  
 COLMAGENTA="\033[1;6m\033[35m"  
 COLWHITE="\033[1;6m\033[37m"  
 COLGRAY="\033[0;6m\033[37m"  
 COLBOLD="\033[1m"  
 COLDEFAULT="\033[0m"  
   
 if [[ ${NOCOLORS} = true ]]  
 then  
  COLRED=""  
  COLGREEN=""  
  COLYELLOW=""  
  COLBLUE=""  
  COLMAGENTA=""  
  COLWHITE=""  
  COLGRAY=""  
  COLBOLD=""  
  COLDEFAULT=""  
 fi  
   
25  # export default path  # export default path
26  export PATH="${PATH}:${MLIBDIR}"  export PATH="${PATH}:${MLIBDIR}"
27    
# Line 118  echo Line 94  echo
94  # install method  # install method
95  METHOD="$1"  METHOD="$1"
96    
97  # initial unversionized packagename, gets overridden later  # initial unversionized packagename, gets overridden later on
98  MAGENAME="$2"  MAGENAME="$2"
99    
100  if [[ ${METHOD} != upgrade ]] && \  if [[ ${METHOD} != upgrade ]] && \
# Line 145  fi Line 121  fi
121  # before anything run mage_setup  # before anything run mage_setup
122  mage_setup || die "error in mage_setup()"  mage_setup || die "error in mage_setup()"
123    
124    # load supported mage features
125    load_mage_features
126    
127  case ${METHOD} in  case ${METHOD} in
128   download)   download)
129   # first of all get the right pkg which going to be installed   # first of all get the right pkg which going to be installed

Legend:
Removed from v.1541  
changed lines
  Added in v.1584