[yocto] [PATCH] CheckforGPLv3: Improve find/grep check
Saul Wold
sgw at linux.intel.com
Tue Aug 25 15:27:28 PDT 2015
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 {} \\;'
self.description = ["Checking to ensure no GPLv3 packages"]
ShellCommand.start(self)
--
2.1.0
More information about the yocto
mailing list