Skip to content

Commit a451a9c

Browse files
committed
Add is_unknown flag for license class
Signed-off-by: akugarg <[email protected]>
1 parent 4d61111 commit a451a9c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/licensedcode/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class License(object):
108108
# if this is a license exception, the license key this exception applies to
109109
is_exception = __attrib(default=False)
110110

111+
is_unknown = __attrib(default=False)
111112
# SPDX key for SPDX licenses
112113
spdx_license_key = __attrib(default=None)
113114
# list of other keys, such as deprecated ones

src/scancode/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def _licenses_data_from_match(
238238
result['short_name'] = lic.short_name
239239
result['category'] = lic.category
240240
result['is_exception'] = lic.is_exception
241+
result['is_unknown']=lic.is_unknown
241242
result['owner'] = lic.owner
242243
result['homepage_url'] = lic.homepage_url
243244
result['text_url'] = lic.text_urls[0] if lic.text_urls else ''

0 commit comments

Comments
 (0)