diff options
author | Ruben Rodriguez <ruben@trisquel.info> | 2015-07-17 14:14:09 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@trisquel.info> | 2015-07-17 14:14:09 -0500 |
commit | 557dfe9f7ce0d53400c83b6b8736205e79f3b133 (patch) | |
tree | ccad5b6d70e65b1486efcb27910279a3c703a406 | |
parent | 39b340faf35b1d59aae37b13b4ed850d50be1d5f (diff) |
Fix issues with missing licenses on export
-rw-r--r-- | export.py | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -141,7 +141,7 @@ def srcpkg_extract_licenses(header, filess, licenses, cl_date, cl_uploader): for (_idx, s) in licenses.iterrows()]) for (_ix, files) in filess.iterrows(): - ldesc = files['_license'].strip() + ldesc = files['_license'].strip().lower() ltext = files['License'] if '\n' in ltext: @@ -160,13 +160,7 @@ def srcpkg_extract_licenses(header, filess, licenses, cl_date, cl_uploader): missing = set(lnames) - set(by_name.keys()) if missing: - raise ExportFailure( - 'missing license text: ' + ', '.join(missing)) - - ltext = '\n'.join('%s:\n\n%s' % - (lname, indent(munge_description(by_name[lname]))) - for lname in lnames) - txt = 'License: %s\n\n%s' % (parsed, ltext) + txt = 'License: %s' % (parsed) canon = lmap.get(ldesc.lower(), 'Other') # XXX: Should maybe bail if there's no copyright field. |