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

Dpkg::Changelog::Debian: call $entry->check_trailer() for trailer line

The header line was checked twice, the second check was meant to
check the trailer line. So change it accordingly.
Raphaël Hertzog лет назад: 16
Родитель
Сommit
e89348732c
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      debian/changelog
  2. 1 1
      scripts/Dpkg/Changelog/Debian.pm

+ 1 - 0
debian/changelog

@@ -13,6 +13,7 @@ dpkg (1.15.5.4) UNRELEASED; urgency=low
     workflow is VCS based and can't generate a full patch set.
   * dpkg-source now uses debian/source/patch-header as header of the automatic
     Debian patch in format "3.0 (quilt)".
+  * Fix Debian changelog parser so that the trailer line is again checked.
 
  -- Raphael Hertzog <hertzog@debian.org>  Sun, 29 Nov 2009 18:15:16 +0100
 

+ 1 - 1
scripts/Dpkg/Changelog/Debian.pm

@@ -128,7 +128,7 @@ sub parse {
 	    $entry->set_part("trailer", $_);
 	    $entry->extend_part("blank_after_changes", [ @blanklines ]);
 	    @blanklines = ();
-	    foreach my $error ($entry->check_header()) {
+	    foreach my $error ($entry->check_trailer()) {
 		$self->parse_error($file, $., $error, $_);
 	    }
 	    $expect = NEXT_OR_EOF;