stdenv: fail if the patch does not exist

This commit is contained in:
Nikolay Amiantov
2014-10-09 22:14:38 +02:00
committed by Bjørn Forsman
parent c0bfdf16a3
commit d15e52f25f
+4
View File
@@ -569,6 +569,10 @@ patchPhase() {
for i in $patches; do
header "applying patch $i" 3
if [ ! -r $i ]; then
echo "file $i does not exist or not readable"
exit 1
fi
local uncompress=cat
case $i in
*.gz)