From 9c8bf5cb2a8590964d284e1ee91a8fed6fdad7ca Mon Sep 17 00:00:00 2001 From: Raphael Hertzog Date: Thu, 20 Mar 2008 15:16:51 +0100 Subject: [PATCH] Dpkg::Source::Patch: change an error into a warning * 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Dpkg/Source/Patch.pm b/scripts/Dpkg/Source/Patch.pm index 33bd559b..f3d0e840 100644 --- a/scripts/Dpkg/Source/Patch.pm +++ b/scripts/Dpkg/Source/Patch.pm @@ -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; -- 2.39.5