* scripts/Dpkg/Source/Patch.pm (analyze): Accept unexpected
end-of-file in patches if we're missing no more than 2 lines
of context. Output a warning instead.
+2008-06-07 Raphael Hertzog <hertzog@debian.org>
+
+ * scripts/Dpkg/Source/Patch.pm (analyze): Accept unexpected
+ end-of-file in patches if we're missing no more than 2 lines
+ of context. Output a warning instead.
+
2008-06-07 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg/Source/Package/V3/quilt.pm (register_autopatch):
# read hunk
while ($olines || $nlines) {
unless (defined($_ = getline($diff_handle))) {
- error(_g("unexpected end of diff `%s'"), $diff);
+ if (($olines == $nlines) and ($olines < 3)) {
+ warning(_g("unexpected end of diff `%s'"), $diff);
+ last;
+ } else {
+ error(_g("unexpected end of diff `%s'"), $diff);
+ }
}
next if /^\\ No newline/;
# Check stats