stdenv: fail if the patch does not exist

This commit is contained in:
Nikolay Amiantov 2014-09-20 02:37:28 +04:00 committed by Bjørn Forsman
parent c0bfdf16a3
commit d15e52f25f

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)