Procházet zdrojové kódy

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 před 16 roky
rodič
revize
ccd01db5cc
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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, $_);
             error(_g("unknown line from diff -u on %s: `%s'"), $new, $_);
         }
         }
 	if (*$self->{'empty'} and defined(*$self->{'header'})) {
 	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;
 	    *$self->{'empty'} = 0;
 	}
 	}
         print $self $_ || syserr(_g("failed to write"));
         print $self $_ || syserr(_g("failed to write"));