diff options
| -rwxr-xr-x | sbolint | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -818,15 +818,14 @@ sub check_and_read { } } - if($crlf_err) { - if($file =~ /\.(diff|patch)$/i) { - log_error("$file has DOS-style CRLF line endings, git will mess it up unless you gzip it!") if $crlf_err; - } else { - log_error("$file has DOS-style CRLF line endings") if $crlf_err; - } + if($file =~ /\.(diff|patch)$/i) { + log_error("$file has DOS-style CRLF line endings, git will mess it up unless you gzip it!") if $crlf_err; + # 20260523 bkw: do not complain if patches lack EOF at end! + } else { + log_error("$file has DOS-style CRLF line endings") if $crlf_err; + log_error("$file has no newline at EOF") if $lastline_nonl; } - log_error("$file has no newline at EOF") if $lastline_nonl; return @lines; } |
