aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2018-08-08 16:34:49 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2018-08-08 16:34:49 +0900
commitf637f0cffc6ec82b120756b9bf56749987bddc2d (patch)
treeed094b3a6405029c43285d675f09dc15014792b3
parent9a11cfb199d6715d558ea1e8d501d0848252275b (diff)
downloadmeta-spdxscanner-f637f0cffc6ec82b120756b9bf56749987bddc2d.tar.gz
meta-spdxscanner-f637f0cffc6ec82b120756b9bf56749987bddc2d.tar.bz2
meta-spdxscanner-f637f0cffc6ec82b120756b9bf56749987bddc2d.zip
Modified some bugs.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/spdx-dosocs.bbclass5
1 files changed, 1 insertions, 4 deletions
diff --git a/classes/spdx-dosocs.bbclass b/classes/spdx-dosocs.bbclass
index 55eaebf..7fffe8e 100644
--- a/classes/spdx-dosocs.bbclass
+++ b/classes/spdx-dosocs.bbclass
@@ -186,12 +186,9 @@ def write_cached_spdx( info,sstatefile, ver_code ):
+ info['pv'] + "</text>"
sed_cmd = sed_replace(sed_cmd,"DocumentComment",spdx_DocumentComment)
- ## Creator information
- sed_cmd = sed_insert(sed_cmd,"CreatorComment: ","LicenseListVersion: " + info['license_list_version'])
-
## Package level information
sed_cmd = sed_replace(sed_cmd,"PackageName: ",info['pn'])
- sed_cmd = sed_replace(sed_cmd,"PackageVersion: ",info['pv'])
+ sed_cmd = sed_insert(sed_cmd,"PackageVersion: ",info['pv'])
sed_cmd = sed_replace(sed_cmd,"PackageDownloadLocation: ",info['package_download_location'])
sed_cmd = sed_insert(sed_cmd,"PackageChecksum: ","PackageHomePage: " + info['package_homepage'])
sed_cmd = sed_replace(sed_cmd,"PackageSummary: ","<text>" + info['package_summary'] + "</text>")