Explorar el Código

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 hace 16 años
padre
commit
ccd01db5cc
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"));