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

[lintian] 01/02: Fix a false positive in clisp



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

broucaries-guest pushed a commit to branch master
in repository lintian.

commit 621c2cdb96e5f11a1337410a9c19fc1f1bb646a4
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date:   Wed Sep 3 21:51:40 2014 +0200

    Fix a false positive in clisp
---
 checks/cruft.pm                                                     | 4 ++++
 debian/changelog                                                    | 2 +-
 t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/clisp.xml | 6 ++++++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/checks/cruft.pm b/checks/cruft.pm
index ce5c050..c29e1ac 100644
--- a/checks/cruft.pm
+++ b/checks/cruft.pm
@@ -1067,6 +1067,10 @@ sub _clean_block {
     $text =~ s{ \\ \* \( [LR] \" }{\"}gxsm;
     $text =~ s{ \\ -}{-}gxsm;
 
+    # replace some shortcut (clisp)
+    $text =~ s{\(&fdl;\)}{ }gxsm;
+    $text =~ s{&fsf;}{free software foundation}gxsm;
+
     # replace some common comment-marker/markup with space
     $text =~ s{^\.\\\"}{ }gxms;               # man comments
 
diff --git a/debian/changelog b/debian/changelog
index 368c20a..bf93f15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,7 +16,7 @@ lintian (2.5.26) UNRELEASED; urgency=medium
     + [BR] Add a pedantic tag for autogenerated file made by Visual
       C++.
     + [BR] Fix another false positive for gfdl invariants in
-      php-elisp.
+      php-elisp and in clisp.
     + [BR] Detect old path for upstream metadata.
   * checks/description.{desc,pm}:
     + [SL] Check for one word short description.  (Closes: #756643).
diff --git a/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/clisp.xml b/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/clisp.xml
new file mode 100644
index 0000000..37449fb
--- /dev/null
+++ b/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/clisp.xml
@@ -0,0 +1,6 @@
+ <para>This document documents free software; you can redistribute it
+    and/or modify it under the terms of the GNU General Public License
+    (&gpl;), either version 2 of the License, or (at your option) any
+    later version published by the &fsf;.
+    A copy of the license is included in <xref linkend="gpl"/>.
+  </para>

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


Reply to: