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

[lintian] 01/01: c/cruft.pm: Use "$cleanedblock" instead of "$block"



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

nthykier pushed a commit to branch master
in repository lintian.

commit f1d9f9dfda947e0019c438826cc22c4178dc3d08
Author: Niels Thykier <niels@thykier.net>
Date:   Tue Feb 25 21:26:02 2014 +0100

    c/cruft.pm: Use "$cleanedblock" instead of "$block"
    
    Signed-off-by: Niels Thykier <niels@thykier.net>
---
 checks/cruft.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index 290b9c4..f23f22a 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -642,7 +642,8 @@ sub license_check {
             if (index($block, 'bcp') > -1){
                 my $cleanedblock = _clean_block($block);
                 if (
-                    $block =~ m/This \s document \s is \s subject \s to \s
+                    $cleanedblock =~ m/This \s document \s is \s subject
+                       \s to \s
                               (?:the \s rights\s?, \s licenses \s
                                  and \s restrictions \s contained \s in)?
                                \s BCP \s 78/xism

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


Reply to: