packages: builder - handle errors from pldnotify.awk
glen
glen at pld-linux.org
Mon Aug 30 17:03:46 CEST 2010
Author: glen Date: Mon Aug 30 15:03:46 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- handle errors from pldnotify.awk
---- Files affected:
packages:
builder (1.629 -> 1.630)
---- Diffs:
================================================================
Index: packages/builder
diff -u packages/builder:1.629 packages/builder:1.630
--- packages/builder:1.629 Sun Aug 22 14:01:34 2010
+++ packages/builder Mon Aug 30 17:03:39 2010
@@ -1457,6 +1457,13 @@
TNOTIFY=$($APPDIR/pldnotify.awk ${BE_VERBOSE:+-vDEBUG=1} $SPECFILE) || exit 1
fi
+ # pldnotify.awk does not set exit codes, but it has match for ERROR
+ # in output which means so.
+ if [[ "$TNOTIFY" = *ERROR* ]]; then
+ echo >&2 "$TNOTIFY"
+ exit 1
+ fi
+
TNEWVER=$(echo $TNOTIFY | awk '{ match($4,/\[NEW\]/); print $5 }')
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.629&r2=1.630&f=u
More information about the pld-cvs-commit
mailing list