Skip to content

Commit f989153

Browse files
author
Li
committed
#395 keep the original license format
1 parent e9a0f65 commit f989153

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/packagedcode/phpcomposer.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ def licensing_mapper(licenses, package):
149149
return package
150150

151151
if isinstance(licenses, basestring):
152-
if '(' in licenses and ')' in license and 'or' in license:
153-
for license in licenses.split('or'):
154-
license = license.lstrip('(').rstrip(')')
155-
package.asserted_licenses.append(models.AssertedLicense(license=license))
156-
else:
157-
package.asserted_licenses.append(models.AssertedLicense(license=licenses))
152+
package.asserted_licenses.append(models.AssertedLicense(license=licenses))
158153
elif isinstance(licenses, list):
159154
"""
160155
"license": [

0 commit comments

Comments
 (0)