We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 570fcd7 + 4d3e0a5 commit 4217c71Copy full SHA for 4217c71
src/fosslight_util/write_opossum.py
@@ -300,7 +300,10 @@ def make_resources_and_attributions(sheet_items, scanner, resources, fc_list):
300
301
uuid_list = []
302
uuid_list.append(str(uuid))
303
- resourcesToAttributions[os.path.join(os.sep, path)] = uuid_list
+ if os.path.join(os.sep, path) in resourcesToAttributions:
304
+ resourcesToAttributions[os.path.join(os.sep, path)].extend(uuid_list)
305
+ else:
306
+ resourcesToAttributions[os.path.join(os.sep, path)] = uuid_list
307
308
for ext in externalAttribution_list:
309
externalAttributions[str(ext.uuid)] = ext
tests/test_opossum.py
@@ -13,6 +13,10 @@ def main():
13
sheet_list = {'SRC_FL_Source': [
14
['test/lib/babel-polyfill.js', '', '', 'bsd-3-clause,facebook-patent-rights-2', '', '',
15
'Copyright (c) 2014, Facebook, Inc.', 'Exclude', ''],
16
+ ['lib/babel-polyfill.js', '', '', 'bsd-3-clause', '', '',
17
+ 'Copyright (c) 2014, Facebook, Inc.', '', ''],
18
+ ['lib/babel-polyfill.js', '', '', 'facebook-patent-rights-2', '', '',
19
20
['requirements.txt', '', '', 'MIT', 'https://pypi.org/project/future/0.18.2', '', '', '', ''],
21
['bower.json', '', '', 'mit', '', '', '', '', ''],
22
['LICENSE', '', '', 'mit', '', '', 'Copyright (c) 2016-2021, The Cytoscape Consortium', '', ''],
0 commit comments