Преглед изворни кода

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 година
родитељ
комит
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"));