--- trunk/mage-buildserver/buildserver-prepare.sh 2014/08/10 19:33:52 2729 +++ trunk/mage-buildserver/buildserver-prepare.sh 2014/08/10 19:35:40 2730 @@ -113,6 +113,40 @@ # update-ca-certificates runarch "${arch}" update-ca-certificates # no die here, cmd may missing + # create list of protected packages + echo "BUILDSERVER_CONFIG_DIR=\"${BUILDSERVER_CONFIG_DIR}\"" > ${BUILDROOT}/${arch}/.runrc + install -d ${BUILDSERVER_CONFIG_DIR}/protected + cat >> ${BUILDROOT}/${arch}/.runrc << "EOF" +env-rebuild +source /etc/profile + +if [ -f /etc/rc.d/init.d/functions ] +then + source /etc/rc.d/init.d/functions +else + die "/etc/rc.d/init.d/functions not found" +fi +if [ -f /etc/mage.rc.global ] +then + source /etc/mage.rc.global +else + die "/etc/mage.rc.global not found" +fi +if [ -f /etc/mage.rc ] +then + source /etc/mage.rc +else + die "/etc/mage.rc not found" +fi + +for mage in $(find ${INSTALLDB} -name \*.${MAGESUFFIX}) +do + pkgname=$(basename ${i} .${MAGESUFFIX}) + pkgname="${pkgname%-*-*}" + echo "${pkgname}" > ${BUILDSERVER_CONFIG_DIR}/protected/"${pkgname}" +done +EOF + # cleanup runarch "${arch}" mage clean || die "${arch} mage clean"