ossa-scanner 0.1.53__py3-none-any.whl → 0.1.55__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 +8 -7
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/METADATA +20 -10
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/RECORD +8 -8
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/LICENSE +0 -0
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/WHEEL +0 -0
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/entry_points.txt +0 -0
- {ossa_scanner-0.1.53.dist-info → ossa_scanner-0.1.55.dist-info}/top_level.txt +0 -0
ossa_scanner/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.1.
|
1
|
+
__version__ = "0.1.55"
|
@@ -178,13 +178,14 @@ def apt_get_license_from_source(package_name, output_dir):
|
|
178
178
|
shutil.rmtree(path, ignore_errors=True)
|
179
179
|
if not package_dir:
|
180
180
|
return "NOASSERTION"
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
181
|
+
else:
|
182
|
+
copyright_file = os.path.join(package_dir, "debian", "copyright")
|
183
|
+
licenses = []
|
184
|
+
if os.path.exists(copyright_file):
|
185
|
+
with open(copyright_file, "r", encoding="utf-8") as f:
|
186
|
+
for line in f:
|
187
|
+
if re.search(r"(?i)license:", line):
|
188
|
+
licenses.append(line.split(":", 1)[1].strip())
|
188
189
|
shutil.rmtree(src_output_dir, ignore_errors=True)
|
189
190
|
return ", ".join(set(licenses)) if licenses else "NOASSERTION"
|
190
191
|
except subprocess.CalledProcessError as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: ossa_scanner
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.55
|
4
4
|
Summary: Open Source Software Advisory generator for Core and Base Linux Packages.
|
5
5
|
Home-page: https://github.com/oscarvalenzuelab/ossa_scanner
|
6
6
|
Author: Oscar Valenzuela
|
@@ -25,14 +25,17 @@ Requires-Dist: swh.model
|
|
25
25
|
Requires-Dist: distro
|
26
26
|
Requires-Dist: ssdeep
|
27
27
|
|
28
|
-
#
|
29
|
-
|
28
|
+
# Open Source Advisory Scanner (Generator)
|
29
|
+
OSSA-Scanner produces OSSA Advisory files per each package available (installed or not) in any Linux OS that uses RPM or Deb packages.
|
30
30
|
|
31
|
-
##
|
31
|
+
## Installation
|
32
|
+
|
33
|
+
### Centos/AL/AlmaLinux
|
34
|
+
|
35
|
+
Installing dependencies, including Software Heritage Scanner for SWHIDs and SSDEEP for FuzzyHashing:
|
32
36
|
|
33
37
|
```
|
34
|
-
$ yum -y update
|
35
|
-
$ yum -y groupinstall "Development Tools"
|
38
|
+
$ yum -y update && yum -y groupinstall "Development Tools"
|
36
39
|
$ yum -y install python-pip python3-devel
|
37
40
|
$ pip3 install swh-scanner
|
38
41
|
$ BUILD_LIB=1 pip install ssdeep
|
@@ -50,9 +53,16 @@ $ pip3 install ossa-scanner --break-system-packages
|
|
50
53
|
```
|
51
54
|
|
52
55
|
|
53
|
-
###
|
56
|
+
### Running in background
|
54
57
|
```
|
55
|
-
|
58
|
+
$ nohup ossa_scanner &
|
59
|
+
```
|
60
|
+
|
61
|
+
To upgrade, just execute install with --upgrade
|
56
62
|
```
|
57
|
-
|
58
|
-
|
63
|
+
$ pip install --upgrade ossa_scanner
|
64
|
+
```
|
65
|
+
|
66
|
+
### License
|
67
|
+
|
68
|
+
This project is licensed under MIT.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
ossa_scanner/__init__.py,sha256=
|
1
|
+
ossa_scanner/__init__.py,sha256=mSfkicuxJWIsRzwvWTgXF6azCtmLwU9PYRQ4CHsYpxE,23
|
2
2
|
ossa_scanner/cli.py,sha256=sgr8NFpf_Ut84KYFQjOKRxv8CfAMaTPhMo7DbR53lT4,2311
|
3
3
|
ossa_scanner/scanner.py,sha256=P_pouAPLMWUq_tjiwDyBYvs6cnXDs5VHB8305ui2VHI,4802
|
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=tR1n-xv-bM23CGH42Zo801kYUZRuQLHoDEXGLDfs5eI,5754
|
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=Rqfkd0Qda6Gq05e9tGyK_4PiPBUSSTKVhHxLbSs6bLA,9247
|
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.55.dist-info/LICENSE,sha256=9slQ_XNiEkio28l90NwihP7a90fCL2GQ6YhcVXTBls4,1064
|
12
|
+
ossa_scanner-0.1.55.dist-info/METADATA,sha256=WLXBdL_mTE43RRqo0SNiBgWcqHnLVHT0rhWFaHbiNrQ,2071
|
13
|
+
ossa_scanner-0.1.55.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
14
|
+
ossa_scanner-0.1.55.dist-info/entry_points.txt,sha256=UVoAo-wTPxT82g3cfqTs2CmQnazd57TAwhd9VwEKD1c,55
|
15
|
+
ossa_scanner-0.1.55.dist-info/top_level.txt,sha256=uUp5CvhZfJLapXn9DyUXvgH7QK3uzF2ibH943lWN5Bs,13
|
16
|
+
ossa_scanner-0.1.55.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|