builder: fail if patch is missing or fails to unpack

This commit is contained in:
Vladimír Čunát 2013-06-27 16:34:31 +02:00
parent 3314be6b73
commit 173c9cbb63

View File

@ -544,7 +544,8 @@ patchPhase() {
uncompress="lzma -d"
;;
esac
$uncompress < $i | patch ${patchFlags:--p1}
# "2>&1" is a hack to make patch fail if the decompressor fails (nonexistent patch, etc.)
$uncompress < $i 2>&1 | patch ${patchFlags:--p1}
stopNest
done