[PATCH] licensecheck: LGPL blurbs with the "terms and conditions" variation

Benjamin Drung bdrung at debian.org
Sat Jun 29 10:31:36 UTC 2013


Hi,

do you have a test case that uses "terms and conditions"?

Am Freitag, den 28.06.2013, 13:58 +0300 schrieb Yanko Kaneti:
> ---
>  scripts/licensecheck.pl | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/licensecheck.pl b/scripts/licensecheck.pl
> index 5174c81..fd51bbb 100755
> --- a/scripts/licensecheck.pl
> +++ b/scripts/licensecheck.pl
> @@ -447,7 +447,7 @@ sub parselicense {
>  	$license = "GENERATED FILE";
>      }
>  
> -    if ($licensetext =~ /((is free software.? )?you can redistribute (it|them) and\/or modify (it|them)|is licensed) under the terms of (version [^ ]+ of )?the (GNU (Library |Lesser )General Public License|LGPL)/i) {
> +    if ($licensetext =~ /((is free software.? )?you can redistribute (it|them) and\/or modify (it|them)|is licensed) under the terms (and conditions )?of (version [^ ]+ of )?the (GNU (Library |Lesser )General Public License|LGPL)/i) {
>  	$license = "LGPL$gplver$extrainfo $license";
>      }

-- 
Benjamin Drung
Debian & Ubuntu Developer




More information about the devscripts-devel mailing list