aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--export.py10
1 files 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.