@@ -72,8 +72,7 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
72
72
sheet_list = {}
73
73
sheet_list [_sheet_name ] = []
74
74
_json_ext = ".json"
75
- _yaml_ext = ".yaml"
76
- _start_time = datetime .now ().strftime ('%y%m%d_%H%M%S' )
75
+ _start_time = datetime .now ().strftime ('%y%m%d_%H%M' )
77
76
78
77
success , msg , output_path , output_file , output_extension = check_output_format (output_dir_file , format )
79
78
if success :
@@ -84,16 +83,14 @@ def run_dependency_scanner(package_manager='', input_dir='', output_dir_file='',
84
83
85
84
if output_file == "" :
86
85
if output_extension == _json_ext :
87
- output_file = f"Opossum_input_{ _start_time } "
88
- elif output_extension == _yaml_ext :
89
- output_file = f"fosslight-sbom-info_{ _start_time } "
86
+ output_file = f"fosslight_opossum_{ _start_time } "
90
87
else :
91
- output_file = f"FOSSLight-Report_ { _start_time } "
88
+ output_file = f"fosslight_report_ { _start_time } "
92
89
else :
93
90
logger .error (msg )
94
91
sys .exit (1 )
95
92
96
- logger , _result_log = init_log (os .path .join (output_path , "fosslight_dependency_log_ " + _start_time + ".txt" ),
93
+ logger , _result_log = init_log (os .path .join (output_path , "fosslight_dep_log_ " + _start_time + ".txt" ),
97
94
True , logging .INFO , logging .DEBUG , _PKG_NAME )
98
95
99
96
logger .info (f"Tool Info : { _result_log ['Tool Info' ]} " )
0 commit comments