fosslight-scanner 2.1.1__py3-none-any.whl → 2.1.3__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.
- fosslight_scanner/common.py +4 -2
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/METADATA +1 -1
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/RECORD +7 -7
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/LICENSE +0 -0
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/WHEEL +0 -0
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/entry_points.txt +0 -0
- {fosslight_scanner-2.1.1.dist-info → fosslight_scanner-2.1.3.dist-info}/top_level.txt +0 -0
fosslight_scanner/common.py
CHANGED
|
@@ -118,6 +118,9 @@ def create_scancodejson(all_scan_item_origin, ui_mode_report, src_path=""):
|
|
|
118
118
|
all_scan_item = copy.deepcopy(all_scan_item_origin)
|
|
119
119
|
if FOSSLIGHT_DEPENDENCY in all_scan_item.file_items:
|
|
120
120
|
del all_scan_item.file_items[FOSSLIGHT_DEPENDENCY]
|
|
121
|
+
first_sheet = FOSSLIGHT_SOURCE
|
|
122
|
+
if all_scan_item.file_items:
|
|
123
|
+
first_sheet = next(iter(all_scan_item.file_items))
|
|
121
124
|
if src_path:
|
|
122
125
|
fileitems_without_oss = []
|
|
123
126
|
for root, _, files in os.walk(src_path):
|
|
@@ -127,7 +130,6 @@ def create_scancodejson(all_scan_item_origin, ui_mode_report, src_path=""):
|
|
|
127
130
|
included = False
|
|
128
131
|
item_path = os.path.join(root, file)
|
|
129
132
|
item_path = item_path.replace(parent + os.path.sep, '', 1)
|
|
130
|
-
|
|
131
133
|
for file_items in all_scan_item.file_items.values():
|
|
132
134
|
for file_item in file_items:
|
|
133
135
|
if file_item.source_name_or_path:
|
|
@@ -138,7 +140,7 @@ def create_scancodejson(all_scan_item_origin, ui_mode_report, src_path=""):
|
|
|
138
140
|
fi_without_oss.source_name_or_path = item_path
|
|
139
141
|
fileitems_without_oss.append(fi_without_oss)
|
|
140
142
|
if len(fileitems_without_oss) > 0:
|
|
141
|
-
all_scan_item.file_items[
|
|
143
|
+
all_scan_item.file_items[first_sheet].extend(fileitems_without_oss)
|
|
142
144
|
if root_dir:
|
|
143
145
|
for file_items in all_scan_item.file_items.values():
|
|
144
146
|
for fi in file_items:
|
|
@@ -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=
|
|
7
|
+
fosslight_scanner/common.py,sha256=FCOpwBt22zpQnT2gcRxiUL2GyWK78i4hVY3m2B0WGw0,8312
|
|
8
8
|
fosslight_scanner/fosslight_scanner.py,sha256=_E-RREMBQt46VkxQdnFUW7beGlJw7lPHV7VdoLITSd8,21495
|
|
9
9
|
fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
|
|
10
|
-
fosslight_scanner-2.1.
|
|
11
|
-
fosslight_scanner-2.1.
|
|
12
|
-
fosslight_scanner-2.1.
|
|
13
|
-
fosslight_scanner-2.1.
|
|
14
|
-
fosslight_scanner-2.1.
|
|
15
|
-
fosslight_scanner-2.1.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|