Skip to content

Commit fac2c44

Browse files
Fix importing from fl source
Signed-off-by: Wonjae Park <[email protected]>
1 parent 0d9a728 commit fac2c44

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ progress
66
pyyaml
77
beautifulsoup4
88
fosslight_util>=1.4.32
9-
fosslight_source==1.7.0
9+
fosslight_source>=1.7.3
1010
fosslight_dependency>=3.7.4
1111
fosslight_binary>=4.1.24
1212
fosslight_prechecker>=3.0.1

src/fosslight_scanner/fosslight_scanner.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
import subprocess
3232
fosslight_source_installed = True
3333
try:
34-
from fosslight_source.cli import run_all_scanners as source_analysis
35-
from fosslight_source.cli import create_report_file
34+
from fosslight_source.cli import run_scanners as source_analysis
3635
except ModuleNotFoundError:
3736
fosslight_source_installed = False
3837

@@ -122,7 +121,6 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
122121
correct_fpath = src_path
123122

124123
try:
125-
sheet_list = {}
126124
final_excel_dir = os.path.abspath(final_excel_dir)
127125
abs_path = os.path.abspath(src_path)
128126

@@ -150,12 +148,7 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
150148
-1, source_analysis,
151149
abs_path,
152150
src_output,
153-
False, num_cores)
154-
if success:
155-
sheet_list["SRC_FL_Source"] = [scan_item.get_row_to_print() for scan_item in result[2]]
156-
create_report_file(0, result[2], result[3], result[4], 'all', False,
157-
_output_dir, output_files["SRC"].split('.')[0], output_extension,
158-
correct_mode, correct_fpath, abs_path)
151+
False, num_cores, False)
159152
else: # Run fosslight_source by using docker image
160153
src_output = os.path.join("output", output_files["SRC"])
161154
output_rel_path = os.path.relpath(abs_path, os.getcwd())

0 commit comments

Comments
 (0)