From 557dfe9f7ce0d53400c83b6b8736205e79f3b133 Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 17 Jul 2015 14:14:09 -0500 Subject: Fix issues with missing licenses on export --- export.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/export.py b/export.py index 3a93602..551708f 100644 --- a/export.py +++ b/export.py @@ -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. -- cgit v1.2.3