ossa-scanner 0.1.24__py3-none-any.whl → 0.1.25__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.
- ossa_scanner/__init__.py +1 -1
- ossa_scanner/utils/package_manager.py +10 -10
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/METADATA +1 -1
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/RECORD +8 -8
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/LICENSE +0 -0
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/WHEEL +0 -0
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/entry_points.txt +0 -0
- {ossa_scanner-0.1.24.dist-info → ossa_scanner-0.1.25.dist-info}/top_level.txt +0 -0
ossa_scanner/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.25"
|
@@ -132,7 +132,6 @@ def parse_yum_info(output):
|
|
132
132
|
def parse_apt_info(output, package_name):
|
133
133
|
info = {}
|
134
134
|
lines = output.splitlines()
|
135
|
-
print(package_name, lines)
|
136
135
|
for line in lines:
|
137
136
|
if line.startswith("Homepage:"):
|
138
137
|
info["website"] = line.split(":", 1)[1].strip()
|
@@ -141,21 +140,22 @@ def parse_apt_info(output, package_name):
|
|
141
140
|
elif line.startswith("License:"):
|
142
141
|
info["licenses"] = line.split(":", 1)[1].strip()
|
143
142
|
|
144
|
-
if not info["licenses"]:
|
145
|
-
print('not found licenses')
|
146
|
-
info["licenses"] = apt_get_license_from_source(package_name)
|
143
|
+
#if not info["licenses"]:
|
144
|
+
#print('not found licenses')
|
145
|
+
#info["licenses"] = apt_get_license_from_source(package_name)
|
147
146
|
|
148
|
-
if info["licenses"]:
|
149
|
-
|
150
|
-
|
151
|
-
else:
|
152
|
-
|
147
|
+
# if info["licenses"]:
|
148
|
+
# info["licenses"] = extract_spdx_ids(info["licenses"])
|
149
|
+
# severity = license_classificaton(info["licenses"])
|
150
|
+
# else:
|
151
|
+
|
152
|
+
severity = "Informational"
|
153
153
|
|
154
154
|
print(package_name, info)
|
155
155
|
|
156
156
|
# Ensure all keys are present even if data is missing
|
157
157
|
return {
|
158
|
-
"licenses": info
|
158
|
+
"licenses": info.get("licenses", "NOASSERTION"),
|
159
159
|
"copyright": info.get("copyright", "NOASSERTION"),
|
160
160
|
"references": info.get("references", "NOASSERTION"),
|
161
161
|
"severity": severity,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ossa_scanner/__init__.py,sha256=
|
1
|
+
ossa_scanner/__init__.py,sha256=Ej7LsXg-6CASlaEHsZkUoLDpYEfHeFKdIeXMIM0esgA,23
|
2
2
|
ossa_scanner/cli.py,sha256=sgr8NFpf_Ut84KYFQjOKRxv8CfAMaTPhMo7DbR53lT4,2311
|
3
3
|
ossa_scanner/scanner.py,sha256=Zmk-Qr8jDoPdCXLkospp2NUgYl7Sdhx_Rhraltxd2u8,4787
|
4
4
|
ossa_scanner/uploader.py,sha256=dPbhSLlQcDyHP-6Ugn6BzYGn_VQ1Ik6TWt2138k3REo,1837
|
@@ -6,11 +6,11 @@ ossa_scanner/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
6
6
|
ossa_scanner/utils/downloader.py,sha256=s1Ef79e4VdBHMW30BsEGQD6qvc7APe7JqBCREYpf0Hw,5674
|
7
7
|
ossa_scanner/utils/hash_calculator.py,sha256=LrDKngWOPbizYJWab2sDJDLB4pD_RrI51L0cZt3VjJY,960
|
8
8
|
ossa_scanner/utils/os_detection.py,sha256=35VbUbFklzd7aojgltKf2PxbnVFcpREA7Tri2YI5nfY,417
|
9
|
-
ossa_scanner/utils/package_manager.py,sha256=
|
9
|
+
ossa_scanner/utils/package_manager.py,sha256=K_jXLrz2zlcb7HR7GudMtcI5QPk66BR8Y8gtSFjUoqQ,8472
|
10
10
|
ossa_scanner/utils/swhid_calculator.py,sha256=7-bO4RglJr-kt5SjUfnlcPZD0k0-s_dveHEjRo-zEMc,1317
|
11
|
-
ossa_scanner-0.1.
|
12
|
-
ossa_scanner-0.1.
|
13
|
-
ossa_scanner-0.1.
|
14
|
-
ossa_scanner-0.1.
|
15
|
-
ossa_scanner-0.1.
|
16
|
-
ossa_scanner-0.1.
|
11
|
+
ossa_scanner-0.1.25.dist-info/LICENSE,sha256=9slQ_XNiEkio28l90NwihP7a90fCL2GQ6YhcVXTBls4,1064
|
12
|
+
ossa_scanner-0.1.25.dist-info/METADATA,sha256=TbR5tVLYCdxEUtDXxUGlENH2kaVOrmJUVSgIoMhiU0w,1938
|
13
|
+
ossa_scanner-0.1.25.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
14
|
+
ossa_scanner-0.1.25.dist-info/entry_points.txt,sha256=UVoAo-wTPxT82g3cfqTs2CmQnazd57TAwhd9VwEKD1c,55
|
15
|
+
ossa_scanner-0.1.25.dist-info/top_level.txt,sha256=uUp5CvhZfJLapXn9DyUXvgH7QK3uzF2ibH943lWN5Bs,13
|
16
|
+
ossa_scanner-0.1.25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|