Skip to content

Commit f370581

Browse files
committed
fix(nuget): match updated develop code
Signed-off-by: Abedin Poonawala <[email protected]>
1 parent a228078 commit f370581

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/packagedcode/nuget.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def parse(cls, location):
185185
# Deprecated and not a license expression, just a URL
186186
elif 'licenseUrl' in nuspec:
187187
extracted_license_statement = nuspec.get('licenseUrl')
188-
188+
189189
yield models.PackageData(
190190
datasource_id=cls.datasource_id,
191191
type=cls.default_package_type,
@@ -194,17 +194,10 @@ def parse(cls, location):
194194
description=description or None,
195195
homepage_url=nuspec.get('projectUrl') or None,
196196
parties=parties,
197-
extracted_license_statement=extracted_license_statement,
198197
dependencies=get_dependencies(nuspec),
199-
# FIXME: license has evolved and is now SPDX...
200-
declared_license=nuspec.get('licenseUrl') or None,
198+
extracted_license_statement=extracted_license_statement,
201199
copyright=nuspec.get('copyright') or None,
202200
vcs_url=vcs_url,
203201
**urls,
204202
)
205203

206-
if not package_data.license_expression and package_data.declared_license:
207-
package_data.license_expression = cls.compute_normalized_license(
208-
package_data)
209-
210-
yield package_data

0 commit comments

Comments
 (0)