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

js pushed a commit to branch master
in repository licensecheck.

commit ba66846f2a8674a37b808800e8859f38e1f36b99
Author: Jonas Smedegaard <d...@jones.dk>
Date:   Mon Oct 10 00:45:04 2016 +0200

    Add license pattern adobe_2006.
---
 lib/App/Licensecheck.pm       | 5 ++---
 lib/Regexp/Pattern/License.pm | 7 +++++++
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/lib/App/Licensecheck.pm b/lib/App/Licensecheck.pm
index 72f7db4..0329eb3 100755
--- a/lib/App/Licensecheck.pm
+++ b/lib/App/Licensecheck.pm
@@ -57,7 +57,6 @@ See the script for casual usage.
 # legacy descriptive names different from SPDX shortnames
 my %SPDX = (
        'Adobe-Glyph'          => 'Adobe Glyph List',
-       'Adobe-2006'           => 'Adobe',
        'APAFML'               => 'Adobe Postscript AFM',
        FSFAP                  => 'FSF All Permissive',
        FSFUL                  => 'FSF Unlimited',
@@ -728,8 +727,8 @@ sub parse_license
 
        # Adobe-2006
        given ($licensetext) {
-               when ( /You agree to indemnify, hold harmless and defend/ ) {
-                       $gen_license->('Adobe-2006');
+               when ( /$L{re}{'adobe_2006'}/ ) {
+                       $gen_license->('adobe_2006');
                }
        }
 
diff --git a/lib/Regexp/Pattern/License.pm b/lib/Regexp/Pattern/License.pm
index db7257f..dd3c949 100644
--- a/lib/Regexp/Pattern/License.pm
+++ b/lib/Regexp/Pattern/License.pm
@@ -24,6 +24,8 @@ Patterns each covering a single license.
 
 =over
 
+=item * adobe_2006
+
 =item * afl
 
 =item * agpl
@@ -111,6 +113,11 @@ my $niv
        = qr/with no Invariant Sections(?:, with no Front-Cover Texts, and with 
no Back-Cover Texts)?/;
 
 our %RE = (
+       adobe_2006 => {
+               name    => 'Adobe-2006',
+               caption => 'Adobe',
+               pat     => qr/You agree to indemnify, hold harmless and defend/,
+       },
        afl => {
                name    => 'AFL',
                summary => 'Academic Free License',

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to