mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 15:49:32 +02:00
license_class: Add explicity avoid of CLOSED license in validations
The CLOSED license isn't a generic license it is a set and can be any closed source license. [YOCTO #7752] (From OE-Core rev: 56c673af4363a9c690eabff8b1fdaa202efb95ce) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a8d4f5cd2b
commit
4dd8c7e805
@@ -71,6 +71,11 @@ license_create_manifest() {
|
|||||||
|
|
||||||
lics="$(echo ${pkged_lic} | sed "s/[|&()*]/ /g" | sed "s/ */ /g" )"
|
lics="$(echo ${pkged_lic} | sed "s/[|&()*]/ /g" | sed "s/ */ /g" )"
|
||||||
for lic in ${lics}; do
|
for lic in ${lics}; do
|
||||||
|
# add explicity avoid of CLOSED license because isn't generic
|
||||||
|
if [ "$lic" = "CLOSED" ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
# to reference a license file trim trailing + symbol
|
# to reference a license file trim trailing + symbol
|
||||||
if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
|
if ! [ -e "${LICENSE_DIRECTORY}/${pkged_pn}/generic_${lic%+}" ]; then
|
||||||
bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
|
bbwarn "The license listed ${lic} was not in the licenses collected for ${pkged_pn}"
|
||||||
@@ -242,8 +247,10 @@ def find_license_files(d):
|
|||||||
|
|
||||||
lic_files_paths.append(("generic_" + license_type, os.path.join(license_source, spdx_generic)))
|
lic_files_paths.append(("generic_" + license_type, os.path.join(license_source, spdx_generic)))
|
||||||
else:
|
else:
|
||||||
# And here is where we warn people that their licenses are lousy
|
# Add explicity avoid of CLOSED license because this isn't generic
|
||||||
bb.warn("%s: No generic license file exists for: %s in any provider" % (pn, license_type))
|
if license_type != 'CLOSED':
|
||||||
|
# And here is where we warn people that their licenses are lousy
|
||||||
|
bb.warn("%s: No generic license file exists for: %s in any provider" % (pn, license_type))
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if not generic_directory:
|
if not generic_directory:
|
||||||
|
|||||||
Reference in New Issue
Block a user