diff options
author | 2017-12-11 22:05:02 +0100 | |
---|---|---|
committer | 2017-12-13 20:06:28 +1100 | |
commit | e573e3564a6e0d84398d1f61c5b9579e9167a7ef (patch) | |
tree | 7172edc93644e8af94c96d13d5fd773144d0eb42 /templates | |
parent | treat Vulnerabilities bugs as Stabilization ones (diff) | |
download | tatt-e573e3564a6e0d84398d1f61c5b9579e9167a7ef.tar.gz tatt-e573e3564a6e0d84398d1f61c5b9579e9167a7ef.tar.bz2 tatt-e573e3564a6e0d84398d1f61c5b9579e9167a7ef.zip |
factor out logging USE and FEATURES on build failures
Diffstat (limited to 'templates')
-rw-r--r-- | templates/revdep-header | 19 | ||||
-rw-r--r-- | templates/use-header | 19 |
2 files changed, 26 insertions, 12 deletions
diff --git a/templates/revdep-header b/templates/revdep-header index 6a69f6c..1004cc9 100644 --- a/templates/revdep-header +++ b/templates/revdep-header @@ -9,18 +9,25 @@ function tatt_pkg_error 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 "USE='${USE}' : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ USE\ changes ]] ; then - echo "USE='${USE}' : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ keyword\ changes ]]; then - echo "USE='${USE}' : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ Error:\ circular\ dependencies: ]]; then - echo "USE='${USE}' : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ \[blocks\ B ]]; then - echo "USE='${USE}' : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@ else - echo "USE='${USE}' FEATURES='${FEATURES}' failed for ${1:?}" >> @@REPORTFILE@@ + echo " failed for ${1:?}" >> @@REPORTFILE@@ fi } diff --git a/templates/use-header b/templates/use-header index 337cc2e..272f402 100644 --- a/templates/use-header +++ b/templates/use-header @@ -9,18 +9,25 @@ function tatt_pkg_error 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 "USE='${USE}' : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : REQUIRED_USE not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ USE\ changes ]] ; then - echo "USE='${USE}' : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : USE dependencies not satisfied (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ keyword\ changes ]]; then - echo "USE='${USE}' : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : unkeyworded dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ Error:\ circular\ dependencies: ]]; then - echo "USE='${USE}' : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : circular dependencies (probably) for ${1:?}" >> @@REPORTFILE@@ elif [[ "${eout}" =~ \[blocks\ B ]]; then - echo "USE='${USE}' : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@ + echo " : blocked packages (probably) for ${1:?}" >> @@REPORTFILE@@ else - echo "USE='${USE}' FEATURES='${FEATURES}' failed for ${1:?}" >> @@REPORTFILE@@ + echo " failed for ${1:?}" >> @@REPORTFILE@@ fi } |