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

[lintian] 01/01: private/refresh-hwcap: Relax section regexps



This is an automated email from the git hooks/post-receive script.

jwilk pushed a commit to branch master
in repository lintian.

commit 4dfc60227f9b944d5754c8546a764a2f4b6cf8fe
Author: Jakub Wilk <jwilk@debian.org>
Date:   Fri May 13 19:07:40 2016 +0200

    private/refresh-hwcap: Relax section regexps
    
    "Hardware capabilities" is now a subsection in ld.so manpage.
---
 debian/changelog      | 3 +++
 private/refresh-hwcap | 4 ++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4a1e83d..2317f53 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -70,6 +70,9 @@ lintian (2.5.45) UNRELEASED; urgency=medium
   * lib/Lintian/DepMap.pm:
     + [JW] Fix typos.
 
+  * private/refresh-hwcap:
+    + [JW] Make the ld.so manpage parser work with the current version.
+
   * reporting/config:
     + [NT] Remove "$COPY_DOCS" configuration option.  The
       html_reports now always copies the documentation.
diff --git a/private/refresh-hwcap b/private/refresh-hwcap
index c3be8b8..e4001d5 100755
--- a/private/refresh-hwcap
+++ b/private/refresh-hwcap
@@ -14,7 +14,7 @@ die "Usage: $0 path/to/lintian/data.\n" unless $datadir;
 
 open(my $manpage, '-|', 'zcat', $man);
 while (<$manpage>) {
-    next unless /^\.SH HARDWARE CAPABILITIES/;
+    next unless /^\.S[SH] HARDWARE CAPABILITIES/i;
     last;
 }
 while (<$manpage>) {
@@ -22,7 +22,7 @@ while (<$manpage>) {
     last;
 }
 while (<$manpage>) {
-    last if /^\.SH /;
+    last if /^\.S[SH] /;
     next if /^\./;
     chomp;
     $caps{$_} = 1 foreach split /,\s*/;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: