]> err.no Git - dpkg/commitdiff
Dpkg::Source::Patch: change an error into a warning
authorRaphael Hertzog <hertzog@debian.org>
Thu, 20 Mar 2008 14:16:51 +0000 (15:16 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Thu, 20 Mar 2008 14:20:06 +0000 (15:20 +0100)
* scripts/Dpkg/Source/Patch.pm (analyze): An empty patch
is still valid, instead of failing simply generate a warning.
21 packages in the archive have an empty .diff.gz and
they can't be extracted without this fix.

scripts/Dpkg/Source/Patch.pm

index 33bd559bf02ff808a79519c9996a05e866209ebe..f3d0e840d7a1277230842b17f439107d6a12fdd9 100644 (file)
@@ -369,7 +369,7 @@ sub analyze {
     }
     close($diff_handle);
     unless ($diff_count) {
-       error(_g("diff `%s' doesn't contain any patch"), $diff);
+       warning(_g("diff `%s' doesn't contain any patch"), $diff);
     }
     $self->cleanup_after_open();
     $self->{'analysis'}{$destdir}{"dirtocreate"} = \%dirtocreate;