[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.4.0-8-ga31b851



The following commit has been merged in the master branch:
commit e78459d6b42d31ef4e87ea8ac864d0cbe53ddfcb
Author: Raphael Geissert <atomo64@gmail.com>
Date:   Mon Apr 26 22:30:35 2010 -0500

    Use "use" instead of "require" for Text::ParseWords
    
    * checks/manpages:
      + [RG] Use "use" instead of "require" for Text::ParseWords and move
        it outside a loop.

diff --git a/checks/manpages b/checks/manpages
index ac2376b..0b74ee6 100644
--- a/checks/manpages
+++ b/checks/manpages
@@ -23,6 +23,7 @@ use strict;
 use Util;
 use Lintian::Check qw(check_spelling);
 use Lintian::Tags qw(tag);
+use Text::ParseWords ();
 
 sub run {
 
@@ -285,7 +286,6 @@ foreach my $file (sort keys %{$info->index}) {
 	    chomp $line;
 	    next if $line =~ /^\.\\\"/o; # comments .\"
 	    if ($line =~ /^\.TH\s/) { # header
-		require Text::ParseWords;
 		my ($th_command, $th_title, $th_section, $th_date ) =
 		    Text::ParseWords::parse_line( '\s+', 0, $line);
 		if ($th_section && (lc($fn_section) ne lc($th_section))) {
diff --git a/debian/changelog b/debian/changelog
index eae4ca2..2074f30 100755
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,9 @@
 lintian (2.4.1) UNRELEASED; urgency=low
 
+  * checks/manpages:
+    + [RG] Use "use" instead of "require" for Text::ParseWords and move
+      it outside a loop.
+
   * collection/debfiles:
     + [RG] Properly handle cases where debian is a symlink.
 

-- 
Debian package checker


Reply to: