Skip to content

Commit b7d5f03

Browse files
committed
pypi2pkgbuild: use license_expression if available
1 parent 4f1ed79 commit b7d5f03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lilac2/pypi2pkgbuild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def gen_pkgbuild(
188188
'summary': j['info']['summary'],
189189
'arch': to_sharray(arch) if arch else 'any',
190190
'home_page': j['info']['home_page'] or j['info']['project_urls'].get('Homepage', ''),
191-
'license': license or "'%s'" % j['info']['license'].replace("'", ''),
191+
'license': license or j['info'].get('license_expression') or "'%s'" % j['info']['license'].replace("'", ''),
192192
'depends': '\n'.join(depends_str),
193193
'provides': f'provides=({to_sharray(provides)})\n' if provides else '',
194194
'conflicts': f'conflicts=({to_sharray(conflicts)})\n' if conflicts else '',

0 commit comments

Comments
 (0)