[lintian] 01/03: Detect other cc-by-sa-nc
This is an automated email from the git hooks/post-receive script.
broucaries-guest pushed a commit to branch master
in repository lintian.
commit 3728d215e561d0e5b51833e9ca1a76c0a146c398
Author: Bastien ROUCARIÈS <roucaries.bastien+debian@gmail.com>
Date: Sat Jan 23 19:11:07 2016 +0100
Detect other cc-by-sa-nc
---
data/cruft/non-free-license | 2 +-
t/tests/cruft-cc-by-nc-sa/debian/src/ISI_export_format.html | 8 ++++++++
t/tests/cruft-cc-by-nc-sa/tags | 1 +
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/data/cruft/non-free-license b/data/cruft/non-free-license
index 9a544e5..938244e 100644
--- a/data/cruft/non-free-license
+++ b/data/cruft/non-free-license
@@ -22,7 +22,7 @@ license-problem-gfdl-invariants ~~ license && document && gnu && copy && documen
license-problem-php-license ~~ www.php.net && group@php.net && phpfoo && conjunction && php ~~ this product includes php ~~ php [ ] license [ ]?[,;][ ]? version [ ] 3(?:\.\d+)? ~~ ~~ php-source-whitelist
license-problem-bad-php-license ~~ www.php.net && add-on && conjunction ~~ this product includes php ~~ php [ ] license [ ]?[,;][ ]? version [ ] 2(?:\.\d+)? ~~ ~~ php-source-whitelist
# cc by nc sa note that " is replaced by [ ]
-license-problem-cc-by-nc-sa ~~ license && by-nc-sa && creativecommons.org ~~ http://creativecommons.org/licenses/by-nc-sa ~~ license [ ] rdf:[^=:]+=[ ]* (?:ht|f)tps?://(?:[^/.]\.)??creativecommons\.org/licenses/by-nc-sa/\d+(?:\.\d+)?(?:/[[:alpha:]]+)?/? [ ]* >
+license-problem-cc-by-nc-sa ~~ license && by-nc-sa && creativecommons.org ~~ ://creativecommons.org/licenses/by-nc-sa || under attribution-noncommercial ~~ (?:license [ ] rdf:[^=:]+=[ ]* (?:ht|f)tps?://(?:[^/.]\.)??creativecommons\.org/licenses/by-nc-sa/\d+(?:\.\d+)?(?:/[[:alpha:]]+)?/? [ ]* >|available [ ] under [ ] attribution-noncommercial)
# not really a license but warn it: visual c++ generated file
source-contains-autogenerated-visual-c++-file ~~ microsoft && visual && generated ~~ microsoft visual c++ generated ~~ microsoft [ ] visual [ ] c[+][+] [ ] generated (?![ ] by [ ] freeze\.py)
# not really a license but warn about it: gperf generated file
diff --git a/t/tests/cruft-cc-by-nc-sa/debian/src/ISI_export_format.html b/t/tests/cruft-cc-by-nc-sa/debian/src/ISI_export_format.html
new file mode 100644
index 0000000..fd6df9c
--- /dev/null
+++ b/t/tests/cruft-cc-by-nc-sa/debian/src/ISI_export_format.html
@@ -0,0 +1,8 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html lang="en" dir="ltr">
+<head>
+<title>Some title</title>
+</head>
+<body>
+Content is available under <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" class="external ">Attribution-NonCommercial-ShareAlike 3.0 Unported</a></body>
+</html>
diff --git a/t/tests/cruft-cc-by-nc-sa/tags b/t/tests/cruft-cc-by-nc-sa/tags
index eaced2b..9675738 100644
--- a/t/tests/cruft-cc-by-nc-sa/tags
+++ b/t/tests/cruft-cc-by-nc-sa/tags
@@ -1,2 +1,3 @@
+E: cruft-cc-by-nc-sa source: license-problem-cc-by-nc-sa src/ISI_export_format.html
E: cruft-cc-by-nc-sa source: license-problem-cc-by-nc-sa src/test.svg
E: cruft-cc-by-nc-sa source: license-problem-cc-by-nc-sa src/test.xml
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: