Skip to content

Commit 01d28f6

Browse files
committed
Restore excution order
1 parent a838b28 commit 01d28f6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/fosslight_scanner/fosslight_scanner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ 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-
147144
if run_src:
148145
try:
149146
if fosslight_source_installed:
@@ -177,6 +174,10 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
177174
os.path.join(output_path, output_files["BIN_TXT"]))
178175
if success_file:
179176
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+
180181
else:
181182
return
182183

0 commit comments

Comments
 (0)