Magellan Linux

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

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

revision 3173 by niro, Fri Oct 24 08:23:22 2014 UTC revision 3174 by niro, Mon Jul 31 08:50:19 2023 UTC
# Line 110  then Line 110  then
110  fi  fi
111  MAGEFILE="${MAGEDIR}/${PCAT}/${PNAME}/${PNAME}-${PVER}-${PBUILD}.mage"  MAGEFILE="${MAGEDIR}/${PCAT}/${PNAME}/${PNAME}-${PVER}-${PBUILD}.mage"
112    
113  # much faster than fgrep  # much faster than grep -F
114  checklist_alldeps()  checklist_alldeps()
115  {  {
116   local i   local i
# Line 265  depwalking() Line 265  depwalking()
265    
266   ## dep already in ALLDEPS? then going on   ## dep already in ALLDEPS? then going on
267    
268   # usage of fgrep is extremly slow and consumes a lot of cpu power   # usage of grep -F is extremly slow and consumes a lot of cpu power
269   #if [ -z "$(echo ${ALLDEPS} | fgrep "${HIGHEST_DEPFILE}")" ]   #if [ -z "$(echo ${ALLDEPS} | grep -F "${HIGHEST_DEPFILE}")" ]
270   if checklist_alldeps "${HIGHEST_DEPFILE}"   if checklist_alldeps "${HIGHEST_DEPFILE}"
271   then   then
272   ### check if the dependency is already installed ###   ### check if the dependency is already installed ###

Legend:
Removed from v.3173  
changed lines
  Added in v.3174