aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@cn.fujitsu.com>2019-10-08 22:12:21 +0900
committerLei Maohui <leimaohui@cn.fujitsu.com>2019-10-08 22:12:21 +0900
commit613efdb6470a7105c41216d79d2793d8a4b746fb (patch)
tree5d277da88bb44d3a708f8833ea3b4528132aceae
parent4388003f889767497cf675948378b74dd36da2c5 (diff)
downloadmeta-spdxscanner-613efdb6470a7105c41216d79d2793d8a4b746fb.tar.gz
meta-spdxscanner-613efdb6470a7105c41216d79d2793d8a4b746fb.tar.bz2
meta-spdxscanner-613efdb6470a7105c41216d79d2793d8a4b746fb.zip
Delete tar ball after scanning.
Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com>
-rw-r--r--classes/fossology-rest.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass
index 8f656f2..23c20a4 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -129,6 +129,7 @@ python do_spdx () {
folder_id = (d.getVar('FOLDER_ID', True) or "")
if invoke_rest_api(d, tar_name, sstatefile, folder_id) == False:
bb.warn("Get spdx file fail, please check your fossology.")
+ remove_file(tar_name)
return False
if get_cached_spdx(sstatefile) != None:
write_cached_spdx( info,sstatefile,cur_ver_code )
@@ -136,6 +137,7 @@ python do_spdx () {
create_manifest(info,sstatefile)
else:
bb.warn('Can\'t get the spdx file ' + info['pn'] + '. Please check your.')
+ remove_file(tar_name)
}
def has_upload(d, tar_file, folder):