Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
ccd01db5cc
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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"));