Skip to content

Commit faaf430

Browse files
authored
Merge pull request #30 from fosslight/bug
Remove NOTICE.txt from Notice file list in log
2 parents f6958a1 + 31497fe commit faaf430

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/fosslight_android/android_binary_analysis.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,14 @@ def find_notice_value():
340340
logger.info(f"Notice file is empty:{notice_files}")
341341
return
342342
if notice_files:
343+
for notice_file in notice_files:
344+
if "NOTICE.txt" in notice_file:
345+
logger.debug(f"NOTICE.txt: {notice_file}")
346+
notice_files.remove(notice_file)
343347
str_notice_files = ",".join(notice_files)
344348
logger.info(f"Notice files:{str_notice_files}")
345349
else:
346-
logger.debug("Can't find a notiece file")
350+
logger.debug("Can't find a notice file")
347351
return_list = do_multi_process(find_notice_html, final_bin_info)
348352
final_bin_info = return_list[:]
349353

0 commit comments

Comments
 (0)