Magellan Linux

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

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

revision 371 by niro, Thu Apr 27 11:52:59 2006 UTC revision 372 by niro, Thu Apr 27 14:51:30 2006 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2  # Magellan Linux Installer (mage.sh)  # Magellan Linux Installer (mage.sh)
3  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.13 2006-04-27 11:52:59 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/mage4.sh,v 1.14 2006-04-27 14:51:30 niro Exp $
4    
5  # default die function  # default die function
6  die()  die()
# Line 153  case ${METHOD} in Line 153  case ${METHOD} in
153   # source the highest magefile of this pkg   # source the highest magefile of this pkg
154   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
155    
156   # package does not exists   # package is masked
157   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
158    
159   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
160   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 183  case ${METHOD} in Line 183  case ${METHOD} in
183   # source the highest magefile of this pkg   # source the highest magefile of this pkg
184   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
185    
186   # package does not exists   # package is masked
187   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
188    
189   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
190   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 212  case ${METHOD} in Line 212  case ${METHOD} in
212   # source the highest magefile of this pkg   # source the highest magefile of this pkg
213   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
214    
215   # package does not exists   # package is masked
216   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
217    
218   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
219   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 248  case ${METHOD} in Line 248  case ${METHOD} in
248   # source the highest magefile of this pkg   # source the highest magefile of this pkg
249   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
250    
251   # package does not exists   # package is masked
252   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
253    
254   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
255   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 290  case ${METHOD} in Line 290  case ${METHOD} in
290   # source the highest magefile of this pkg   # source the highest magefile of this pkg
291   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
292    
293   # package does not exists   # package is masked
294   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
295    
296   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
297   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on
# Line 380  case ${METHOD} in Line 380  case ${METHOD} in
380   # source the highest magefile of this pkg   # source the highest magefile of this pkg
381   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))   PKGNAME=$(get_value_from_magefile PKGNAME $(get_highest_magefile ${PCAT} ${MAGENAME}))
382    
383   # package does not exists   # package is masked
384   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' does not exist."   [ -z "${PKGNAME}" ] && die "Package '${MAGENAME}' is masked and not available for installation."
385    
386   # convert PKGNAME to PNAME/PVER/PBUILD   # convert PKGNAME to PNAME/PVER/PBUILD
387   # we're working *only* with these three vars from here on   # we're working *only* with these three vars from here on

Legend:
Removed from v.371  
changed lines
  Added in v.372