From: Vladimir Zapolskiy Date: Tue, 11 Sep 2012 01:13:44 +0000 (+0300) Subject: classes/license: check license manifest for double records X-Git-Tag: rev_ivi_2015_02_04~15562 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00a84939c7044c8a4223602b16a75499dbcbead8;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/classes/license.bbclass b/meta/classes/license.bbclass index 0335f41..021ab2e 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}