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

Dpkg::Source::Patch: fix output of patch with an header

The line was misparsed. Use the print method to avoid any ambiguity.
Raphaël Hertzog лет назад: 16
Родитель
Сommit
ccd01db5cc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/Dpkg/Source/Patch.pm

+ 1 - 1
scripts/Dpkg/Source/Patch.pm

@@ -119,7 +119,7 @@ sub add_diff_file {
             error(_g("unknown line from diff -u on %s: `%s'"), $new, $_);
         }
 	if (*$self->{'empty'} and defined(*$self->{'header'})) {
-	    print $self *$self->{'header'} or syserr(_g("failed to write"));
+	    $self->print(*$self->{'header'}) or syserr(_g("failed to write"));
 	    *$self->{'empty'} = 0;
 	}
         print $self $_ || syserr(_g("failed to write"));