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

[SCM] Debian package checker branch, master, updated. 2.2.6-28-g804f0d0



The following commit has been merged in the master branch:
commit 804f0d0d8067eea002d54db56175e616a4c4579b
Author: Russ Allbery <rra@debian.org>
Date:   Sun Mar 1 22:44:58 2009 -0800

    Force man to format to 80 columns
    
    * checks/manpages:
      + [RA] Set MANWIDTH to 80 in the environment when running man to force
        it to assume 80-column lines even when Lintian is run in a smaller
        window.  Thanks, Joey Hess.  (Closes: #517629)

diff --git a/checks/manpages b/checks/manpages
index 47d994d..44c756f 100644
--- a/checks/manpages
+++ b/checks/manpages
@@ -260,7 +260,7 @@ foreach my $file (sort keys %{$info->index}) {
 	if (not defined $pid) {
 	    fail("cannot run man -E UTF-8 -l: $!");
 	} elsif ($pid == 0) {
-	    my %newenv = (LANG => 'C', PATH => $ENV{PATH});
+	    my %newenv = (LANG => 'C', PATH => $ENV{PATH}, MANWIDTH => 80);
 	    undef %ENV;
 	    %ENV = %newenv;
 	    exec "($cmd >/dev/null) 2>&1"
diff --git a/debian/changelog b/debian/changelog
index 5a657a5..60de861 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -47,6 +47,9 @@ lintian (2.2.7) UNRELEASED; urgency=low
   * checks/manpages:
     + [CW] Run man with '-E UTF-8' to avoid producing bogus warnings on
       localised manual pages due to attempting to recode through ASCII.
+    + [RA] Set MANWIDTH to 80 in the environment when running man to force
+      it to assume 80-column lines even when Lintian is run in a smaller
+      window.  Thanks, Joey Hess.  (Closes: #517629)
   * checks/menus:
     + [RA] Cache the reference to the section list.  Thanks, Raphael
       Geissert.  Also use all caps for global variables.

-- 
Debian package checker


Reply to: