aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-12-11 22:05:02 +0100
committerkensington <kensington@gentoo.org>2017-12-13 20:06:28 +1100
commite573e3564a6e0d84398d1f61c5b9579e9167a7ef (patch)
tree7172edc93644e8af94c96d13d5fd773144d0eb42 /templates
parenttreat Vulnerabilities bugs as Stabilization ones (diff)
downloadtatt-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-header19
-rw-r--r--templates/use-header19
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
}