mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
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
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user