--- trunk/mage-buildserver/helper/buildserver-build-install-prerequisites.sh 2016/02/03 11:55:44 2934 +++ trunk/mage-buildserver/helper/buildserver-build-install-prerequisites.sh 2016/02/03 11:56:20 2935 @@ -81,6 +81,19 @@ die "smagefile '${SMAGESCRIPTSDIR}/${SMAGEFILE}' not found." fi +# don't want to run any exported post/preinstall or post/preremove +# functions of the smage here because they will be exported globally +# and honored by every package which does not override these function. +# the final package (the smage itself) will not be installed via this script, +# so these functions can be safely ignored. +for func in {pre,post}{install,remove} +do + if [[ $(typeset -f ${func}) ]] + then + unset "${func}" + fi +done + # create build info dir install -d ${BUILDSERVER_CACHE_DIR}/build