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

[SCM] Debian package checker branch, master, updated. 2.5.12-104-gc8d9f5a



The following commit has been merged in the master branch:
commit c40867af53d229a5b960f1e0893a9edbf06517a8
Author: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
Date:   Sun May 19 22:19:58 2013 +0200

    Fix false positive in xml file due to <link.*> </link>
    
    Allow link tag
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/cruft b/checks/cruft
index 7a0e5aa..2996e21 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -494,6 +494,7 @@ sub find_cruft {
                           \n[-\+!<>]      |  # diff/patch lines
                           \n\.\\\"        |  # man comments
                           <br\s*/?>       |  # (X)HTML line breaks
+                          </?link.*?>     |  # xml link
                           \(\*note.*?::\) |  # info file note
                         )}xiso;
                         # GFDL license, assume it is bad unless it
diff --git a/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/gnashfalsepositive.xml b/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/gnashfalsepositive.xml
new file mode 100644
index 0000000..9e77873
--- /dev/null
+++ b/t/tests/cruft-gfdl-invariants/debian/src/oldfalsepositive/gnashfalsepositive.xml
@@ -0,0 +1,15 @@
+<html>
+<body>
+<div class="blockquote"><blockquote class="blockquote"><p>
+    Copyright 2008, Free Software Foundation.
+    </p><p>
+    Permission is granted to copy, distribute and/or modify this
+    document under the terms of the GNU Free Documentation
+    License, Version 1.1 or any later version published by the
+    Free Software Foundation; with no<link class="link" href="#fdl-invariant">Invariant Sections</link>, with no <link class="link" href="#fdl-cover-texts">Front-Cover Texts</link>,
+    and with no <link class="link" href="#fdl-cover-texts">Back-Cover
+    Texts</link>. A copy of the license is included in
+    the section entitled "GNU Free Documentation License".
+</p></blockquote></div>
+</body>
+</html>

-- 
Debian package checker


Reply to: