aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2017-12-01 22:05:22 +0100
committerkensington <kensington@gentoo.org>2017-12-05 22:59:32 +1100
commitd8a3e892b0cedbc5dd1b1e1f78e851c83b639b87 (patch)
tree00e230c61cacfde592404ebe40020cf5ec731be2 /templates/revdep-snippet
parentfactor out script replacements (diff)
downloadtatt-d8a3e892b0cedbc5dd1b1e1f78e851c83b639b87.tar.gz
tatt-d8a3e892b0cedbc5dd1b1e1f78e851c83b639b87.tar.bz2
tatt-d8a3e892b0cedbc5dd1b1e1f78e851c83b639b87.zip
factor out error handling of use and revdep testing scripts
This makes them much more readable.
Diffstat (limited to 'templates/revdep-snippet')
-rw-r--r--templates/revdep-snippet12
1 files changed, 1 insertions, 11 deletions
diff --git a/templates/revdep-snippet b/templates/revdep-snippet
index 982b179..03fa511 100644
--- a/templates/revdep-snippet
+++ b/templates/revdep-snippet
@@ -1,16 +1,6 @@
eout=$( @@FEATURES@@ @@USE@@ emerge -1 @@EMERGEOPTS@@ @@CPV@@ 2>&1 1>/dev/tty )
if [[ $? == 0 ]] ; then
echo "@@FEATURES@@ @@USE@@ succeeded for @@CPV@@" >> @@REPORTFILE@@
-elif [[ "${eout}" =~ REQUIRED_USE ]] ; then
- echo "${eout}"
- echo "@@CPV@@ : REQUIRED_USE not satisfied (probably) for @@CPV@@" >> @@REPORTFILE@@
-elif [[ "${eout}" =~ USE\ changes ]] ; then
- echo "${eout}"
- echo "@@CPV@@ : USE dependencies not satisfied (probably) for @@CPV@@" >> @@REPORTFILE@@
-elif [[ "${eout}" =~ keyword\ changes ]]; then
- echo "${eout}"
- echo "@@USE@@ : unkeyworded dependencies (probably) for @@CPV@@" >> @@REPORTFILE@@
else
- echo "${eout}"
- echo "@@FEATURES@@ failed for @@CPV@@" >> @@REPORTFILE@@
+ @@USE@@ @@FEATURES@@ tatt_pkg_error "@@CPV@@" "${eout}"
fi