Magellan Linux

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

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

revision 2370 by niro, Mon Jan 6 12:31:51 2014 UTC revision 2371 by niro, Mon Jan 6 14:09:10 2014 UTC
# Line 72  print_usage() Line 72  print_usage()
72   echo "    srcupgrade      - runs a complete system upgrade from source"   echo "    srcupgrade      - runs a complete system upgrade from source"
73   echo "    pretend-build-prerequisites - prints build prerequisites"   echo "    pretend-build-prerequisites - prints build prerequisites"
74   echo "    install-build-prerequisites - install build prerequisites"   echo "    install-build-prerequisites - install build prerequisites"
75     echo "    run-preinstall  - runs preinstall part of an installed package"
76     echo "    run-postinstall - runs postinstall part of an installed package"
77   echo "    search          - searches mage-tree for a package"   echo "    search          - searches mage-tree for a package"
78   echo "    clean           - removes *all* downloaded packages"   echo "    clean           - removes *all* downloaded packages"
79   echo "    unpack          - unpacks *all* needed package for 'foo'"   echo "    unpack          - unpacks *all* needed package for 'foo'"
# Line 341  case ${METHOD} in Line 343  case ${METHOD} in
343   uninstall_packages ${ALLDEPS}   uninstall_packages ${ALLDEPS}
344   ;;   ;;
345    
346     run-preinstall|run-postinstall)
347     have_root_privileges || die "You must be root to run this operation."
348    
349     ALLDEPS="$(get_uninstall_candidates --pname ${MAGENAME})"
350     if [ -z "${ALLDEPS}" ]
351     then
352     die "No package installed named '${MAGENAME}'."
353     fi
354     rerun_pkgfunctions --method "${METHOD//run-}" ${ALLDEPS}
355     ;;
356    
357   uppretend|srcuppretend)   uppretend|srcuppretend)
358   ${MLIBDIR}/depwalker.sh \   ${MLIBDIR}/depwalker.sh \
359   --method ${METHOD} \   --method ${METHOD} \

Legend:
Removed from v.2370  
changed lines
  Added in v.2371