Skip to content

Commit 1c9288d

Browse files
committed
Fixed #132 - Add 'dje_license_url' field when the 'extract_license'
option is set
1 parent 86638c1 commit 1c9288d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

about_code_tool/genabout.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@ def get_dje_license_list(self, gen_location, input_list, gen_license, dje_licens
436436
return license_output_list
437437

438438
def pre_process_and_dje_license_dict(self, input_list, api_url, api_username, api_key):
439+
dje_lic_urn = "https://enterprise.dejacode.com/urn/?urn=urn:dje:license:"
439440
key_text_dict = {}
440441
license_dict = {}
441442
for line in input_list:
@@ -455,11 +456,13 @@ def pre_process_and_dje_license_dict(self, input_list, api_url, api_username, ap
455456
line['dje_license_name'] = detail[0]
456457
dje_key = detail[1]
457458
license_context = detail [2]
459+
line['dje_license_url'] = dje_lic_urn + lic
458460
detail_list.append(dje_key)
459461
detail_list.append(license_context)
460462
key_text_dict[detail[0]] = detail_list
461463
else:
462464
line['dje_license_name'] = license_dict[lic]
465+
line['dje_license_url'] = dje_lic_urn + lic
463466
except Exception:
464467
err = Warn(VALUE, 'dje_license', '',
465468
'Missing "dje_license" for ' + line['about_file'])

0 commit comments

Comments
 (0)