[yocto] [PATCH] CheckforGPLv3: Improve find/grep check

Khem Raj raj.khem at gmail.com
Tue Aug 25 15:56:07 PDT 2015


> On Aug 25, 2015, at 3:27 PM, Saul Wold <sgw at linux.intel.com> wrote:
> 
> Add additional information to help determine what is reporting
> the GPLv3 if there is a match
> 
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
> lib/python2.7/site-packages/autobuilder/buildsteps/CheckForGPLv3.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/CheckForGPLv3.py b/lib/python2.7/site-packages/autobuilder/buildsteps/CheckForGPLv3.py
> index 0cc5b2c..ace6473 100644
> --- a/lib/python2.7/site-packages/autobuilder/buildsteps/CheckForGPLv3.py
> +++ b/lib/python2.7/site-packages/autobuilder/buildsteps/CheckForGPLv3.py
> @@ -28,7 +28,7 @@ class CheckForGPLv3(ShellCommand):
>         ShellCommand.__init__(self, **kwargs)
> 
>     def start(self):
> -        self.command = 'for x in `find ./build/tmp/deploy/licenses -name "license.manifest"`; do cat $x|grep GPLv3; done'
> +        self.command = 'find ./build/tmp/deploy/licenses -name "license.manifest" -exec grep -H -B1 GPLv3 {} \\;'

how about GPL-3.0 and LGPL-3.0 will that be caught ?

>         self.description = ["Checking to ensure no GPLv3 packages"]
>         ShellCommand.start(self)
> 
> --
> 2.1.0
> 
> --
> _______________________________________________
> yocto mailing list
> yocto at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150825/2bd9929b/attachment.pgp>


More information about the yocto mailing list