Skip to content

Commit a838b28

Browse files
committed
Change the execution order for scanners
1 parent 59858f8 commit a838b28

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fosslight_scanner/fosslight_scanner.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
141141
if success_file:
142142
temp_output_fiiles.append(copied_file)
143143

144+
if run_dep:
145+
run_dependency(src_path, os.path.join(_output_dir, output_files["DEP"]), dep_arguments)
146+
144147
if run_src:
145148
try:
146149
if fosslight_source_installed:
@@ -174,10 +177,6 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
174177
os.path.join(output_path, output_files["BIN_TXT"]))
175178
if success_file:
176179
temp_output_fiiles.append(copied_file)
177-
178-
if run_dep:
179-
run_dependency(src_path, os.path.join(_output_dir, output_files["DEP"]), dep_arguments)
180-
181180
else:
182181
return
183182

0 commit comments

Comments
 (0)