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

[SCM] Debian package checker branch, master, updated. 2.5.11-59-gbfc5ff7



The following commit has been merged in the master branch:
commit bf8d1f4532c41cfd4141e787e0413019bb6163ba
Author: Bastien ROUCARIÈS <roucaries.bastien@gmail.com>
Date:   Wed Jan 9 22:58:15 2013 +0100

    Add more variant of gfdl
    
    Some package are particularly creative about grammar. Even if
    incorrect allow it.
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/checks/cruft b/checks/cruft
index be04906..30f46e1 100644
--- a/checks/cruft
+++ b/checks/cruft
@@ -451,9 +451,9 @@ sub find_cruft {
                                A \s+ copy \s+ of \s+ the \s+ license \s+ is \s+ included/xis) {
                     # GFDL license, assume it is bad unless it
                     # explicitly states it has no "bad sections".
-                    unless ($1 =~m/with \s+ no \s+ Invariant \s+ Sections,?
-                                       \s+ (?:with\s+)? no \s+ Front-Cover \s+ Texts,? \s+ and
-                                       \s+ (?:with\s+)? no \s+ Back-Cover \s+ Texts/xis) {
+                    unless ($1 =~m/with \s+ (?:the\s+)? no \s+ Invariant \s+ Sections,?
+                                       \s+ (?:with\s+)? (?:the\s+)? no \s+ Front-Cover \s+ Texts,? \s+ and
+                                       \s+ (?:with\s+)? (?:the\s+)? no \s+ Back-Cover \s+ Texts/xis) {
                         tag 'license-problem-gfdl-invariants', $name;
                         $licenseproblemhash{'gfdl-invariants'} = 1;
                     }
diff --git a/t/tests/cruft-gfdl-invariants/debian/src/partedvariant.txt b/t/tests/cruft-gfdl-invariants/debian/src/partedvariant.txt
new file mode 100644
index 0000000..96037ac
--- /dev/null
+++ b/t/tests/cruft-gfdl-invariants/debian/src/partedvariant.txt
@@ -0,0 +1,8 @@
+Parted 2.13 version with strange grammar.
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3
+or any later version published by the Free Software Foundation;
+with the no Invariant Sections, with the no Front-Cover Texts, and
+with no Back-Cover Texts.  A copy of the license is included in the
+file, COPYING.DOC.

-- 
Debian package checker


Reply to: