Exit if snapshot creation fails

svn path=/trunk/; revision=572
This commit is contained in:
Andrew Gaffney 2008-09-04 02:33:23 +00:00
parent 77d67f9f11
commit 1199ff88ac
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,9 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Id$
04 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto:
Exit if snapshot creation fails
04 Sep 2008; Andrew Gaffney <agaffney@gentoo.org> catalyst-auto,
catalyst-auto-amd64.conf:
Enable the build functionality

View file

@ -127,6 +127,7 @@ done
# Create snapshot
if ! run_cmd "catalyst -c ${CATALYST_CONFIG} -s ${DATESTAMP}" "${TMPDIR}/log/snapshot-${DATESTAMP}.log"; then
send_email "Catalyst build error - snapshot" "$(tail -n 200 ${TMPDIR}/log/snapshot-${DATESTAMP}.log)"
exit 1
fi
for i in ${SPECS}; do