diff options
author | linimon <linimon@FreeBSD.org> | 2010-08-16 14:22:37 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2010-08-16 14:22:37 +0800 |
commit | 0e64493ad2be9ac9ac3d89370aa0688d43f2f0fb (patch) | |
tree | 8e27f5df4c5a5f037e5492249f862de8d44c5e28 /Tools | |
parent | 25247b66c12d1aed329eb88eb70f1b2d7f5402e5 (diff) | |
download | freebsd-ports-graphics-0e64493ad2be9ac9ac3d89370aa0688d43f2f0fb.tar.gz freebsd-ports-graphics-0e64493ad2be9ac9ac3d89370aa0688d43f2f0fb.tar.zst freebsd-ports-graphics-0e64493ad2be9ac9ac3d89370aa0688d43f2f0fb.zip |
Add some missing error handling.
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/portbuild/scripts/dopackages | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/dopackages b/Tools/portbuild/scripts/dopackages index 4df28ea7104..2dbe6388d2f 100755 --- a/Tools/portbuild/scripts/dopackages +++ b/Tools/portbuild/scripts/dopackages @@ -237,6 +237,10 @@ dobuild() { echo "started at $(date)" start=$(date +%s) ${QMANAGER_PATH}/packagebuild ${arch} ${branch} ${buildid} > ${builddir}/${journalname} 2>&1 < /dev/null + result=$? + if [ $result -ne 0 ]; then + echo "ERROR: packagebuild ${arch} ${branch} ${buildid} failed: see ${builddir}/${journalname} for details" + fi echo "ended at $(date)" end=$(date +%s) echo "Build took $(date -u -j -r $((end - start)) | awk '{print $4}')" |