Skip to content

Commit

Permalink
Fix the default oss name in oss list
Browse files Browse the repository at this point in the history
Exclude the exclude item for comparing yaml

Signed-off-by: Jiyeong Seok <jiyeong.seok@lge.com>
  • Loading branch information
dd-jy committed Aug 14, 2023
1 parent aff2792 commit 320257b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/fosslight_util/compare_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def compare_yaml(before_file, after_file):
def get_merged_item(oss_items):
item_list = []
for oi in oss_items:
if oi.exclude:
continue
item_info = {NAME: oi.name, VERSION: oi.version, LICENSE: oi.license}

filtered = next(filter(lambda oss_dict: oss_dict[NAME] == oi.name and oss_dict[VERSION] == oi.version, item_list), None)
Expand Down
2 changes: 1 addition & 1 deletion src/fosslight_util/oss_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class OssItem:
def __init__(self, value):
self._name = "-"
self._name = ""
self._version = ""
self._license = []
self._copyright = ""
Expand Down

0 comments on commit 320257b

Please sign in to comment.