Просмотр исходного кода

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.
Raphael Hertzog лет назад: 18
Родитель
Сommit
9c8bf5cb2a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/Dpkg/Source/Patch.pm

+ 1 - 1
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;