aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei Maohui <leimaohui@fujitsu.com>2022-05-18 15:18:41 +0900
committerLei Maohui <leimaohui@fujitsu.com>2022-05-18 15:18:41 +0900
commit93cee05fba88dfe961bf39dd3f062d6fa0dac142 (patch)
tree57722a48b730b32bad17cfbedcd1cb226d6f0754
parent25373bc58ece8b6f07680a103b4a1bbbc99e0db1 (diff)
downloadmeta-spdxscanner-kirkstone.tar.gz
meta-spdxscanner-kirkstone.tar.bz2
meta-spdxscanner-kirkstone.zip
fossology-python.bbclass: Updated for fossology-python upstream fixed an issue.HEADmasterkirkstone
Please Refrence to: https://github.com/fossology/fossology-python/issues/95 Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
-rw-r--r--classes/fossology-python.bbclass5
1 files changed, 2 insertions, 3 deletions
diff --git a/classes/fossology-python.bbclass b/classes/fossology-python.bbclass
index 7cd9ed2..5dfc1e2 100644
--- a/classes/fossology-python.bbclass
+++ b/classes/fossology-python.bbclass
@@ -198,8 +198,7 @@ def create_folder(d, foss, token, folder_name):
create_folder_lock.release()
if folder.name != folder_name:
bb.error("Folder %s couldn't be created" % folder_name)
- else:
- return folder
+ return folder
python do_schedule_jobs(){
import os
@@ -434,7 +433,7 @@ python do_get_report(){
while i < 20:
i += 1
try:
- report, name = foss.download_report(report_id)
+ report, name = foss.download_report(report_id, wait_time=wait_time*2)
except TryAgain:
bb.warn("SPDX file is still not ready, try again.")
time.sleep(wait_time)