Skip to content

Commit dafe37a

Browse files
committed
add the comment for Go output report
Signed-off-by: Jiyeong Seok <[email protected]>
1 parent d2120e7 commit dafe37a

File tree

1 file changed

+6
-1
lines changed
  • src/fosslight_dependency/package_manager

1 file changed

+6
-1
lines changed

src/fosslight_dependency/package_manager/Go.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,18 @@ def parse_oss_information(self, f_name):
6565

6666
license_name = ''
6767
homepage = ''
68+
comment = ''
6869

6970
for dn_loc_i in [dn_loc, tmp_dn_loc]:
7071
try:
7172
res = urllib.request.urlopen(dn_loc_i)
7273
if res.getcode() == 200:
7374
urlopen_success = True
7475
if dn_loc_i == tmp_dn_loc:
76+
if oss_version:
77+
comment = 'Cannot connect ' \
78+
+ dn_loc \
79+
+ ', so use the latest version page to get the license, homepage.'
7580
dn_loc = tmp_dn_loc
7681
break
7782
except Exception:
@@ -94,6 +99,6 @@ def parse_oss_information(self, f_name):
9499
continue
95100

96101
sheet_list.append([const.SUPPORT_PACKAE.get(self.package_manager_name),
97-
oss_name, oss_version, license_name, dn_loc, homepage, '', '', ''])
102+
oss_name, oss_version, license_name, dn_loc, homepage, '', '', comment])
98103

99104
return sheet_list

0 commit comments

Comments
 (0)