builder: fail if patch is missing or fails to unpack
This commit is contained in:
parent
3314be6b73
commit
173c9cbb63
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user