aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2019-11-07 12:49:20 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2019-11-07 12:49:20 +0900
commit0cf32aadc10290b58a991f284e401db946e6459e (patch)
treefcfd242216653632652f883ff306b8c63970b161
parent679bd1b27def6c25f1152bfb414d509da77f94ff (diff)
downloadmeta-spdxscanner-0cf32aadc10290b58a991f284e401db946e6459e.tar.gz
meta-spdxscanner-0cf32aadc10290b58a991f284e401db946e6459e.tar.bz2
meta-spdxscanner-0cf32aadc10290b58a991f284e401db946e6459e.zip
Move modification record into PackageComment.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/spdx-common.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/spdx-common.bbclass b/classes/spdx-common.bbclass
index 5a12cab..6a1f6f2 100644
--- a/classes/spdx-common.bbclass
+++ b/classes/spdx-common.bbclass
@@ -139,7 +139,7 @@ def write_cached_spdx( info,sstatefile, ver_code ):
sed_cmd = sed_replace(sed_cmd, "PackageDownloadLocation: ",info['package_download_location'])
sed_cmd = sed_insert(sed_cmd, "PackageDownloadLocation: ", "PackageHomePage: " + info['package_homepage'])
sed_cmd = sed_insert(sed_cmd, "PackageDownloadLocation: ", "PackageSummary: " + "<text>" + info['package_summary'] + "</text>")
- sed_cmd = sed_insert(sed_cmd, "PackageDownloadLocation: ", "modification record : " + info['modified'])
+ sed_cmd = sed_insert(sed_cmd, "PackageCopyrightText: ", "PackageComment: <text>\\nmodification record : " + info['modified'] + "\\n</text>")
sed_cmd = sed_replace(sed_cmd, "PackageVerificationCode: ",ver_code)
sed_cmd = sed_insert(sed_cmd, "PackageVerificationCode: ", "PackageDescription: " +
"<text>" + info['pn'] + " version " + info['pv'] + "</text>")