aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--load_copyright.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/load_copyright.py b/load_copyright.py
index 67e9edf..f54a3ce 100644
--- a/load_copyright.py
+++ b/load_copyright.py
@@ -76,6 +76,8 @@ def import_one(pkgname, fh):
#print 'err:', repr(e)
return None
+ if licences == []:
+ return None
header['_srcpkg'] = pkgname
header['_license'] = header.get('License', '').split('\n')[0]