mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
dd1ee2ab1e
commit
5dce00ff49
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user