Magellan Linux

Diff of /branches/mage-next/src/depwalker.in

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

revision 677 by niro, Tue Feb 26 19:51:40 2008 UTC revision 701 by niro, Wed Mar 26 15:58:25 2008 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2    
3  #depwalker  #depwalker
4  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.9 2008-02-26 19:51:40 niro Exp $  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/depwalker.sh,v 1.10 2008-03-26 15:58:25 niro Exp $
5    
6  # default die function  # default die function
7  die()  die()
# Line 57  usage() Line 57  usage()
57   echo "                         install, srcinstall, depend, srcdepend"   echo "                         install, srcinstall, depend, srcdepend"
58   echo "                         upgrade, srcupgrade"   echo "                         upgrade, srcupgrade"
59   echo   echo
60   echo "method,name, version and build must be given !"   echo "method, name, version and build must be given !"
61   echo   echo
62   exit 1   exit 1
63  }  }
# Line 244  then Line 244  then
244   # get the highest mage file from mage-db   # get the highest mage file from mage-db
245   MAGEFILE="$(get_highest_magefile ${PCAT} ${PNAME})"   MAGEFILE="$(get_highest_magefile ${PCAT} ${PNAME})"
246    
247     # if no install candidate was found, record this
248     # and process with the next one
249     if [[ -z ${MAGEFILE} ]]
250     then
251     NO_UPGRADE_CANDIDATE="${NO_UPGRADE_CANDIDATE} ${PCAT}/${PNAME}"
252     continue
253     fi
254    
255   # now get the pver&pbuild from the new file   # now get the pver&pbuild from the new file
256   PVER="$(magename2pver ${MAGEFILE})"   PVER="$(magename2pver ${MAGEFILE})"
257   PBUILD="$(magename2pbuild ${MAGEFILE})"   PBUILD="$(magename2pbuild ${MAGEFILE})"
# Line 309  then Line 317  then
317   echo "done"   echo "done"
318   echo -e "${list}"   echo -e "${list}"
319   echo   echo
320    
321     if [[ ! -z ${NO_UPGRADE_CANDIDATE} ]]
322     then
323     echo -e "${COLRED}Currently no candidates found for:${COLDEFAULT}"
324     for i in ${NO_UPGRADE_CANDIDATE}
325     do
326     echo -e "${COLRED}    ${i}${COLDEFAULT}"
327     done
328     echo
329     echo -e "${COLRED}Please consider to uninstall all of them first,${COLDEFAULT}"
330     echo -e "${COLRED}because these packages does not exist in this distribution${COLDEFAULT}"
331     echo -e "${COLRED}and there will be no further updates or support for them.${COLDEFAULT}"
332     echo
333     fi
334  fi  fi
335    
336  ## return output from src/install deps  ## return output from src/install deps

Legend:
Removed from v.677  
changed lines
  Added in v.701