aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2021-05-24 17:25:02 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2021-05-24 17:25:02 +0900
commit62d90ea4a8af1501df1570b32115e8f2fa287d6e (patch)
tree4410baa5bc4db1a81bfe115ae18dda965179ec57
parent967ec220a19598aaf9a812ad9ff46c49c65bb0f6 (diff)
downloadmeta-spdxscanner-62d90ea4a8af1501df1570b32115e8f2fa287d6e.tar.gz
meta-spdxscanner-62d90ea4a8af1501df1570b32115e8f2fa287d6e.tar.bz2
meta-spdxscanner-62d90ea4a8af1501df1570b32115e8f2fa287d6e.zip
Expand PackageLicenseInfoInLicenseFile field:
Added files which name includes "LICENSE" and "COPYING". Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/spdx-common.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/spdx-common.bbclass b/classes/spdx-common.bbclass
index efef80b..f7aa6ea 100644
--- a/classes/spdx-common.bbclass
+++ b/classes/spdx-common.bbclass
@@ -208,9 +208,9 @@ def find_infoinlicensefile(sstatefile):
bb.note("Found readme file " + base_file_name)
elif base_file_name.startswith("README"):
bb.note("Found README file " + base_file_name)
- elif base_file_name.startswith("COPYING") or base_file_name.endswith("COPYING"):
+ elif base_file_name.find("COPYING")>=0:
bb.note("Found COPYING file " + base_file_name)
- elif base_file_name.startswith("LICENSE"):
+ elif base_file_name.find("LICENSE")>=0:
bb.note("Found LICENSE file: " + base_file_name)
else:
continue