Skip to content

Commit 5168dfa

Browse files
committed
Print download location without checking new binary
1 parent e760d6a commit 5168dfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/fosslight_android/_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def get_print_array(self, return_excel=True):
114114
need_check = ""
115115
print_items_txt.append(f"{self.bin_name}\t{source_path}\t{self.notice}\t"
116116
f"{oss_name}\t{self.oss_version}\t{self.license}\t{need_check}\t{comment}\t{self.tlsh}\t{self.checksum}")
117-
repo_link = self.download_location if self.is_new_bin else ""
117+
repo_link = self.download_location
118118
print_items_excel.append([self.bin_name, source_path, self.notice, oss_name,
119119
self.oss_version, self.license, repo_link, repo_link, '', '', '', comment,
120120
need_check, self.tlsh, self.checksum])

src/fosslight_android/android_binary_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def set_oss_name_by_repository():
732732
source_path = item.source_code_path
733733
item_license = item.license
734734
if (oss_name == CONST_NULL or oss_name == "Android Open Source Project") and source_path != CONST_NULL:
735-
if item_license not in skip_license:
735+
if (not item_license) or (item_license not in skip_license):
736736
item.oss_name, item.oss_version, item.download_location = get_oss_component_name(source_path, oss_name, item.oss_version)
737737
item.homepage = item.download_location
738738
except Exception as error:

0 commit comments

Comments
 (0)