mirror of
https://invent.kde.org/packaging/yocto-meta-kf5.git
synced 2026-01-29 21:08:43 +01:00
Disable license check per default
This commit is contained in:
@@ -90,16 +90,17 @@ do_populate_lic_prepend() {
|
||||
print('Set LIC_FILES_CHKSUM from known SPDX files to:', d.getVar('LIC_FILES_CHKSUM'))
|
||||
|
||||
# QA test for complete statement
|
||||
src_licenses = os.listdir(os.path.join(srcdir, 'LICENSES/'))
|
||||
for license_file in src_licenses:
|
||||
# convert license_file to SPDX identifier
|
||||
license_name = license_file
|
||||
if license_name.endswith('.txt'):
|
||||
license_name = license_name[:-4]
|
||||
if d.getVar('KF5_REUSE_LICENSECHECK_ENABLED') and d.getVar('KF5_REUSE_LICENSECHECK_ENABLED') == '1':
|
||||
src_licenses = os.listdir(os.path.join(srcdir, 'LICENSES/'))
|
||||
for license_file in src_licenses:
|
||||
# convert license_file to SPDX identifier
|
||||
license_name = license_file
|
||||
if license_name.endswith('.txt'):
|
||||
license_name = license_name[:-4]
|
||||
|
||||
# compute list intersection and test if empty
|
||||
if license_name in spdx_id_to_yocto_map:
|
||||
if list(set(recipe_licenses) & set(spdx_id_to_yocto_map[license_name])):
|
||||
continue
|
||||
bb.warn("QA Issue: %s [%s]" % (license_name + " found in SRC but not in package license statement", "reuse_license"))
|
||||
# compute list intersection and test if empty
|
||||
if license_name in spdx_id_to_yocto_map:
|
||||
if list(set(recipe_licenses) & set(spdx_id_to_yocto_map[license_name])):
|
||||
continue
|
||||
bb.warn("QA Issue: %s [%s]" % (license_name + " found in SRC but not in package license statement", "reuse_license"))
|
||||
}
|
||||
|
||||
@@ -19,3 +19,6 @@ BBFILE_PRIORITY_kf5 = "6"
|
||||
LICENSE_PATH += "${LAYERDIR}/conf/licenses"
|
||||
|
||||
LAYERSERIES_COMPAT_kf5 = "sumo thud warrior zeus dunfell"
|
||||
|
||||
# disable check per default until all recipes are updated
|
||||
KF5_REUSE_LICENSECHECK_ENABLED = "0"
|
||||
|
||||
Reference in New Issue
Block a user