summaryrefslogtreecommitdiffstats
path: root/meta/classes/license.bbclass
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>2012-09-11 04:13:44 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-12 15:13:42 +0100
commit5dce00ff490792e9b20abeadc98753a12373ca27 (patch)
tree5f7ab712805e3a0f6965bab80f9f6fdb1cfd1535 /meta/classes/license.bbclass
parentdd1ee2ab1ef61b77265748b106deffce3fd21c10 (diff)
downloadpoky-5dce00ff490792e9b20abeadc98753a12373ca27.tar.gz
classes/license: check license manifest for double records
Trivial typo bugfix, avoid multiple records in license.manifest. (From OE-Core rev: 0d3ca97d3a349ca572fce798ebf9de59a438c0c8) Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/license.bbclass')
-rw-r--r--meta/classes/license.bbclass2
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() {
93 pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/ */ /g; p }' ${filename})" 93 pkged_lic="$(sed -n '/^LICENSE: /{ s/^LICENSE: //; s/[+|&()*]/ /g; s/ */ /g; p }' ${filename})"
94 pkged_pv="$(sed -n 's/^PV: //p' ${filename})" 94 pkged_pv="$(sed -n 's/^PV: //p' ${filename})"
95 # check to see if the package name exists in the manifest. if so, bail. 95 # check to see if the package name exists in the manifest. if so, bail.
96 if ! grep -q "PACKAGE NAME: ${pkg}" ${filename}; then 96 if ! grep -q "^PACKAGE NAME: ${pkg}" ${LICENSE_MANIFEST}; then
97 # exclude local recipes 97 # exclude local recipes
98 if [ ! "${pkged_pn}" = "*locale*" ]; then 98 if [ ! "${pkged_pn}" = "*locale*" ]; then
99 echo "PACKAGE NAME:" ${pkg} >> ${LICENSE_MANIFEST} 99 echo "PACKAGE NAME:" ${pkg} >> ${LICENSE_MANIFEST}