fosslight-binary 4.1.27__tar.gz → 4.1.28__tar.gz
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_binary-4.1.27 → fosslight_binary-4.1.28}/PKG-INFO +1 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/requirements.txt +1 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/setup.py +1 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/binary_analysis.py +11 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/PKG-INFO +1 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/requires.txt +1 -1
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/LICENSE +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/LICENSES/Apache-2.0.txt +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/LICENSES/LicenseRef-3rd_party_licenses.txt +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/MANIFEST.in +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/README.md +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/setup.cfg +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/__init__.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/_binary.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/_binary_dao.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/_help.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/_jar_analysis.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary/cli.py +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/SOURCES.txt +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/dependency_links.txt +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/entry_points.txt +0 -0
- {fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/top_level.txt +0 -0
|
@@ -19,6 +19,7 @@ from ._binary_dao import get_oss_info_from_db
|
|
|
19
19
|
from ._binary import BinaryItem
|
|
20
20
|
from ._jar_analysis import analyze_jar_file, merge_binary_list
|
|
21
21
|
from fosslight_util.correct import correct_with_yaml
|
|
22
|
+
from fosslight_util.cover import CoverItem
|
|
22
23
|
|
|
23
24
|
_PKG_NAME = "fosslight_binary"
|
|
24
25
|
logger = logging.getLogger(constant.LOGGER_NAME)
|
|
@@ -160,6 +161,9 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
|
|
|
160
161
|
if simple_mode:
|
|
161
162
|
bin_list = [bin.bin_name for bin in return_list]
|
|
162
163
|
else:
|
|
164
|
+
cover = CoverItem(tool_name=_PKG_NAME,
|
|
165
|
+
start_time=_start_time,
|
|
166
|
+
input_path=path_to_find_bin)
|
|
163
167
|
try:
|
|
164
168
|
# Run OWASP Dependency-check
|
|
165
169
|
if found_jar:
|
|
@@ -195,8 +199,12 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
|
|
|
195
199
|
else:
|
|
196
200
|
sheet_list = correct_list
|
|
197
201
|
logger.info("Success to correct with yaml.")
|
|
202
|
+
cover.comment = f"Total number of binaries: {total_bin_cnt} "
|
|
203
|
+
if total_bin_cnt == 0:
|
|
204
|
+
cover.comment += "(No binaries detected.) "
|
|
205
|
+
cover.comment += f"/ Total number of files: {total_file_cnt}"
|
|
198
206
|
success_to_write, writing_msg, result_file = write_output_file(result_report, output_extension, sheet_list,
|
|
199
|
-
extended_header, hide_header)
|
|
207
|
+
extended_header, hide_header, cover)
|
|
200
208
|
except Exception as ex:
|
|
201
209
|
error_occured(error_msg=str(ex), exit=False)
|
|
202
210
|
|
|
@@ -205,6 +213,8 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
|
|
|
205
213
|
logger.info(f"Output file :{result_file}")
|
|
206
214
|
else:
|
|
207
215
|
logger.warning(f"{writing_msg}")
|
|
216
|
+
if cover.comment:
|
|
217
|
+
logger.info(cover.comment)
|
|
208
218
|
else:
|
|
209
219
|
logger.error(f"Fail to generate result file.:{writing_msg}")
|
|
210
220
|
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/LICENSES/LicenseRef-3rd_party_licenses.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{fosslight_binary-4.1.27 → fosslight_binary-4.1.28}/src/fosslight_binary.egg-info/top_level.txt
RENAMED
|
File without changes
|