Magellan Linux

Diff of /branches/mage-next/usr/lib/mage/mage4.sh

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

revision 2221 by niro, Wed Oct 16 07:40:02 2013 UTC revision 2233 by niro, Wed Oct 16 10:14:41 2013 UTC
# Line 5  Line 5 
5  # default die function  # default die function
6  die()  die()
7  {  {
8   echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT}   xtitleclean
9     mqueryfeature "debug" && echo -e ${COLRED}"Exited ${BASH_SOURCE} at line no ${BASH_LINENO}."${COLDEFAULT}
10   echo -e ${COLRED}"$@"${COLDEFAULT}   echo -e ${COLRED}"$@"${COLDEFAULT}
11   exit 1   exit 1
12  }  }
# Line 138  fi Line 139  fi
139    
140  case ${METHOD} in  case ${METHOD} in
141   download)   download)
142     have_root_privileges || die "You must be root to run this operation."
143    
144   # first of all get the right pkg which going to be installed   # first of all get the right pkg which going to be installed
145   PCAT="$(pname2pcat ${MAGENAME})"   PCAT="$(pname2pcat ${MAGENAME})"
146    
# Line 169  case ${METHOD} in Line 172  case ${METHOD} in
172   ;;   ;;
173    
174   srcdownload)   srcdownload)
175     have_root_privileges || die "You must be root to run this operation."
176    
177   # first of all get the right pkg which going to be installed   # first of all get the right pkg which going to be installed
178   PCAT="$(pname2pcat ${MAGENAME})"   PCAT="$(pname2pcat ${MAGENAME})"
179    

Legend:
Removed from v.2221  
changed lines
  Added in v.2233