diff options
Diffstat (limited to 'templates/use-header')
-rw-r--r-- | templates/use-header | 39 |
1 files changed, 5 insertions, 34 deletions
diff --git a/templates/use-header b/templates/use-header index 4000a68..d18e080 100644 --- a/templates/use-header +++ b/templates/use-header @@ -3,40 +3,11 @@ trap "echo 'signal captured, exiting the entire script...'; exit" SIGHUP SIGINT SIGTERM -function tatt_pkg_error -{ - local eout=${2} +export TATT_TEST_TYPE="use" +export TATT_REPORTFILE="@@REPORTFILE@@" +export TATT_BUILDLOGDIR="@@BUILDLOGDIR@@" +export TATT_EMERGEOPTS="@@EMERGEOPTS@@" - echo "${eout}" - - if [ -n "${USE}" ]; then - echo -n "USE='${USE}'" >> @@REPORTFILE@@ - fi - if [ -n "${FEATURES}" ]; then - echo -n " FEATURES='${FEATURES}'" >> @@REPORTFILE@@ - fi - - if [[ "${eout}" =~ REQUIRED_USE ]] ; then - echo " : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ - elif [[ "${eout}" =~ USE\ changes ]] ; then - echo " : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ - elif [[ "${eout}" =~ keyword\ changes ]]; then - echo " : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ - elif [[ "${eout}" =~ Error:\ circular\ dependencies: ]]; then - echo " : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ - elif [[ "${eout}" =~ Blocked\ Packages ]]; then - echo " : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@ - else - echo " failed for ${1:?}" >> @@REPORTFILE@@ - fi - - CP=${1#=} - BUILDLOG=/var/tmp/portage/${CP}/temp/build.log - if [[ -n "@@BUILDLOGDIR@@" && -s "${BUILDLOG}" ]]; then - LOGNAME=$(mktemp -p "@@BUILDLOGDIR@@" "${CP/\//_}_use_XXXXX") - mv "${BUILDLOG}" "${LOGNAME}" - echo " log has been saved as ${LOGNAME}" >> @@REPORTFILE@@ - fi -} +source "@@TEMPLATEDIR@@tatt_functions.sh" echo -e "USE tests started on $(date)\n" >> @@REPORTFILE@@ |