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'" |
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} \ |