stdenv: fail if the patch does not exist
This commit is contained in:
parent
c0bfdf16a3
commit
d15e52f25f
|
@ -569,6 +569,10 @@ patchPhase() {
|
||||||
|
|
||||||
for i in $patches; do
|
for i in $patches; do
|
||||||
header "applying patch $i" 3
|
header "applying patch $i" 3
|
||||||
|
if [ ! -r $i ]; then
|
||||||
|
echo "file $i does not exist or not readable"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
local uncompress=cat
|
local uncompress=cat
|
||||||
case $i in
|
case $i in
|
||||||
*.gz)
|
*.gz)
|
||||||
|
|
Loading…
Reference in New Issue