Magellan Linux

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

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

revision 2269 by niro, Fri Oct 25 06:55:11 2013 UTC revision 2280 by niro, Wed Nov 20 12:20:12 2013 UTC
# Line 27  usage() Line 27  usage()
27   echo "Usage: $(basename $0) [command] [arg] ..."   echo "Usage: $(basename $0) [command] [arg] ..."
28   echo   echo
29   echo "  -h     --help          shows this help"   echo "  -h     --help          shows this help"
30   echo "  -c     --pcat          categorie of the package"   echo "  -c     --pcat          category of the package"
31   echo "  -n     --pname         name of the package"   echo "  -n     --pname         name of the package"
32   echo "  -v     --pver          version number of the package"   echo "  -v     --pver          version number of the package"
33   echo "  -b     --pbuild        build number of the package"   echo "  -b     --pbuild        build number of the package"
34   echo "  -m     --method        which calc method should be used:"   echo "  -m     --method        which calc method should be used:"
35   echo "                         install, srcinstall, depend, srcdepend"   echo "                         install, srcinstall, depend, srcdepend"
36   echo "                         upgrade, srcupgrade,"   echo "                         upgrade, srcupgrade,"
37   echo "                         install-build-prerequisites, pretend-build-prerequisites"   echo "                         install-build-prerequisites,"
38     echo "                         pretend-build-prerequisites"
39   echo "  -d     --debug         enable debug mode"   echo "  -d     --debug         enable debug mode"
40   echo   echo
41   echo "method, name, version and build must be given !"   echo "method, category, name, version and build must be given !"
42   echo   echo
43   exit 1   exit 1
44  }  }
# Line 281  then Line 282  then
282   then   then
283   # get dependencies the package   # get dependencies the package
284   depwalking ${MAGEFILE}   depwalking ${MAGEFILE}
285    
286     # now add the package itself to the dependencies
287     # (if not exists already)
288     if checklist_alldeps "${MAGEFILE}"
289     then
290     ALLDEPS="${ALLDEPS} ${MAGEFILE}"
291     fi
292   fi   fi
293   done   done
294  else  else
# Line 290  else Line 298  else
298  fi  fi
299    
300  if [[ ${METHOD} != install-build-prerequisites ]] &&  if [[ ${METHOD} != install-build-prerequisites ]] &&
301   [[ ${METHOD} != pretend-build-prerequisites ]]   [[ ${METHOD} != pretend-build-prerequisites ]] &&
302     [[ ${METHOD} != upgrade ]] &&
303     [[ ${METHOD} != uppretend ]] &&
304     [[ ${METHOD} != srcupgrade ]] &&
305     [[ ${METHOD} != srcuppretend ]]
306  then  then
307   # now add the package itself to the dependencies   # now add the package itself to the dependencies
308   # (if not exists already)   # (if not exists already)

Legend:
Removed from v.2269  
changed lines
  Added in v.2280