fosslight-scanner 2.1.3__py3-none-any.whl → 2.1.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -116,11 +116,12 @@ def create_scancodejson(all_scan_item_origin, ui_mode_report, src_path=""):
116
116
 
117
117
  try:
118
118
  all_scan_item = copy.deepcopy(all_scan_item_origin)
119
- if FOSSLIGHT_DEPENDENCY in all_scan_item.file_items:
120
- del all_scan_item.file_items[FOSSLIGHT_DEPENDENCY]
121
- first_sheet = FOSSLIGHT_SOURCE
122
119
  if all_scan_item.file_items:
123
- first_sheet = next(iter(all_scan_item.file_items))
120
+ first_sheet = next((item for item in all_scan_item.file_items if item != FOSSLIGHT_DEPENDENCY),
121
+ None)
122
+ if not first_sheet:
123
+ first_sheet = FOSSLIGHT_SOURCE
124
+ all_scan_item.file_items[first_sheet] = []
124
125
  if src_path:
125
126
  fileitems_without_oss = []
126
127
  for root, _, files in os.walk(src_path):
@@ -52,7 +52,7 @@ _start_time = ""
52
52
  _executed_path = ""
53
53
  SRC_DIR_FROM_LINK_PREFIX = "fosslight_src_dir_"
54
54
  SCANNER_MODE = [
55
- "all", "compare", "reuse", "prechecker", "binary",
55
+ "all", "compare", "binary",
56
56
  "bin", "src", "source", "dependency", "dep"
57
57
  ]
58
58
 
@@ -183,12 +183,6 @@ def run_scanner(src_path, dep_arguments, output_path, keep_raw_data=False,
183
183
  abs_path = os.path.abspath(src_path)
184
184
 
185
185
  if success:
186
- if run_prechecker:
187
- success, result = call_analysis_api(src_path, "Prechecker Lint",
188
- -1, prechecker_lint,
189
- abs_path, False, _output_dir,
190
- exclude_path=path_to_exclude)
191
-
192
186
  if run_src:
193
187
  try:
194
188
  if fosslight_source_installed:
@@ -446,12 +440,7 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
446
440
  run_src = True
447
441
  run_bin = True
448
442
  run_dep = True
449
- run_prechecker = False
450
- if "prechecker" in mode_list or "reuse" in mode_list:
451
- run_prechecker = True
452
443
  else:
453
- if "prechecker" in mode_list or "reuse" in mode_list:
454
- run_prechecker = True
455
444
  if "binary" in mode_list or "bin" in mode_list:
456
445
  run_bin = True
457
446
  if "source" in mode_list or "src" in mode_list:
@@ -459,7 +448,7 @@ def run_main(mode_list, path_arg, dep_arguments, output_file_or_dir, file_format
459
448
  if "dependency" in mode_list or "dep" in mode_list:
460
449
  run_dep = True
461
450
 
462
- if run_dep or run_src or run_bin or run_prechecker:
451
+ if run_dep or run_src or run_bin:
463
452
  if src_path == "" and url_to_analyze == "":
464
453
  src_path, dep_arguments, url_to_analyze = get_input_mode(_executed_path, mode_list)
465
454
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fosslight-scanner
3
- Version: 2.1.3
3
+ Version: 2.1.5
4
4
  Summary: FOSSLight Scanner
5
5
  Home-page: https://github.com/fosslight/fosslight_scanner
6
6
  Author: LG Electronics
@@ -21,7 +21,7 @@ Requires-Dist: openpyxl
21
21
  Requires-Dist: progress
22
22
  Requires-Dist: pyyaml
23
23
  Requires-Dist: beautifulsoup4
24
- Requires-Dist: fosslight-util<3.0.0,>=2.1.6
24
+ Requires-Dist: fosslight-util<3.0.0,>=2.1.12
25
25
  Requires-Dist: fosslight-source<3.0.0,>=2.1.4
26
26
  Requires-Dist: fosslight-dependency<5.0.0,>=4.1.3
27
27
  Requires-Dist: fosslight-binary<6.0.0,>=5.1.2
@@ -4,12 +4,12 @@ fosslight_scanner/_help.py,sha256=-Dqgn1inH26614GjrIe8I5cdEziuAxTtwrUdtTkrpjQ,30
4
4
  fosslight_scanner/_parse_setting.py,sha256=SoIEoPGlFXAp6__eEFEMIPYPoKLvmqxXF5X_C_uFiVI,2468
5
5
  fosslight_scanner/_run_compare.py,sha256=zmzX-FIvWCSkwPvEA3iHfVpyg6QDGUCpw3tJuGLdPWM,10657
6
6
  fosslight_scanner/cli.py,sha256=C4YNPVJJ-Ezj_6xe8k9QbIrf5V44GXbHWCGzR2FMcV8,6547
7
- fosslight_scanner/common.py,sha256=FCOpwBt22zpQnT2gcRxiUL2GyWK78i4hVY3m2B0WGw0,8312
8
- fosslight_scanner/fosslight_scanner.py,sha256=_E-RREMBQt46VkxQdnFUW7beGlJw7lPHV7VdoLITSd8,21495
7
+ fosslight_scanner/common.py,sha256=K7lCp1ysKzmdHIBQZzLCIGiOg1ENbBZo9mZ724rMbPY,8358
8
+ fosslight_scanner/fosslight_scanner.py,sha256=EftUvIHIzWm6yOOGyPFCRV_IkT-2YFcoKSDrVEIea2I,20841
9
9
  fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
10
- fosslight_scanner-2.1.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- fosslight_scanner-2.1.3.dist-info/METADATA,sha256=LOcCWbEAZ4BI4Jyv-1HNPd_d_gK-SU5AcM5Scopligw,7872
12
- fosslight_scanner-2.1.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
- fosslight_scanner-2.1.3.dist-info/entry_points.txt,sha256=0tBUtN9pKtAkuohQuhbzuohdHbeoI0-w95aWAR7J_RU,105
14
- fosslight_scanner-2.1.3.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
- fosslight_scanner-2.1.3.dist-info/RECORD,,
10
+ fosslight_scanner-2.1.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ fosslight_scanner-2.1.5.dist-info/METADATA,sha256=zYAaQtJeI4-BZ7Gm1FUsNEfFTvZxrbK9vW6V49fqZUg,7873
12
+ fosslight_scanner-2.1.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
13
+ fosslight_scanner-2.1.5.dist-info/entry_points.txt,sha256=0tBUtN9pKtAkuohQuhbzuohdHbeoI0-w95aWAR7J_RU,105
14
+ fosslight_scanner-2.1.5.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
15
+ fosslight_scanner-2.1.5.dist-info/RECORD,,