diff options
author | Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> | 2012-09-11 04:13:44 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-12 14:44:54 +0100 |
commit | 0d3ca97d3a349ca572fce798ebf9de59a438c0c8 (patch) | |
tree | c8bf01c08b30e29b3bf398b78b20a50a50928bfd /meta/classes/license.bbclass | |
parent | 0ac50f848cf0f897333cff9340976519fc95fdc4 (diff) | |
download | openembedded-core-0d3ca97d3a349ca572fce798ebf9de59a438c0c8.tar.gz openembedded-core-0d3ca97d3a349ca572fce798ebf9de59a438c0c8.tar.bz2 openembedded-core-0d3ca97d3a349ca572fce798ebf9de59a438c0c8.zip |
classes/license: check license manifest for double records
Trivial typo bugfix, avoid multiple records in license.manifest.
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r-- | meta/classes/license.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 0335f4195c..021ab2ee17 100644 --- a/meta/classes/license.bbclass +++ b/meta/classes/license.bbclass @@ -93,7 +93,7 @@ license_create_manifest() { pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/ */ /g; p }' ${filename})" pkged_pv="$(sed -n 's/^PV: //p' ${filename})" # check to see if the package name exists in the manifest. if so, bail. - if ! grep -q "PACKAGE NAME: ${pkg}" ${filename}; then + if ! grep -q "^PACKAGE NAME: ${pkg}" ${LICENSE_MANIFEST}; then # exclude local recipes if [ ! "${pkged_pn}" = "*locale*" ]; then echo "PACKAGE NAME:" ${pkg} >> ${LICENSE_MANIFEST} |