[licensecheck] 91/112: Tighten license pattern bsd-2-clause. Tidy Regexp::Pattern::License::Pattern: Rename pattern asis_sw_name → asis_sw_by_name.

Jonas Smedegaard dr at jones.dk
Fri Nov 25 22:02:56 UTC 2016


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

js pushed a commit to branch master
in repository licensecheck.

commit 077b50fbff67bcf7a1d592f127910beae5bba277
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Fri Nov 25 06:13:32 2016 +0100

    Tighten license pattern bsd-2-clause. Tidy Regexp::Pattern::License::Pattern: Rename pattern asis_sw_name → asis_sw_by_name.
---
 lib/Regexp/Pattern/License.pm       | 2 +-
 lib/Regexp/Pattern/License/Parts.pm | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/Regexp/Pattern/License.pm b/lib/Regexp/Pattern/License.pm
index 1eef7bc..c59de5f 100644
--- a/lib/Regexp/Pattern/License.pm
+++ b/lib/Regexp/Pattern/License.pm
@@ -234,7 +234,7 @@ our %RE = (
 		'name.alt.org.debian' => 'BSD-2-clause',
 		caption               => 'BSD (2 clause)',
 		tags                  => ['bsd'],
-		pat => qr/$P{repro_notice_cond_discl}\b[^a-zA-Z]+$P{asis_sw_name}/,
+		pat => qr/$P{repro_notice_cond_discl}\b[^a-zA-Z]+$P{asis_sw_by_name}/,
 	},
 	bsd_3_clause => {
 		name                  => 'BSD-3-Clause',
diff --git a/lib/Regexp/Pattern/License/Parts.pm b/lib/Regexp/Pattern/License/Parts.pm
index 7ba4425..9c38cec 100644
--- a/lib/Regexp/Pattern/License/Parts.pm
+++ b/lib/Regexp/Pattern/License/Parts.pm
@@ -43,7 +43,7 @@ Patterns each covering a single part, e.g. a clause or a disclaimer phrase.
 
 =item * asis_name_sw
 
-=item * asis_sw_name
+=item * asis_sw_by_name
 
 =item * cc
 
@@ -188,10 +188,10 @@ our %RE = (
 		tags    => ['clause'],
 		pat     => qr/(?:\S+ ){1,15}PROVIDES? THIS SOFTWARE/,
 	},
-	asis_sw_name => {
-		caption => 'as-is (software, name)',
+	asis_sw_by_name => {
+		caption => 'as-is (software, by name)',
 		tags    => ['clause'],
-		pat     => qr/THIS SOFTWARE IS PROVIDED/,
+		pat     => qr/THIS SOFTWARE IS PROVIDED BY/,
 	},
 	cc => {
 		caption => 'Creative Commons qualifier',

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/licensecheck.git



More information about the Pkg-perl-cvs-commits mailing list