diff options
author | Ruben Rodriguez <ruben@trisquel.info> | 2015-07-17 14:07:59 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@trisquel.info> | 2015-07-17 14:07:59 -0500 |
commit | ce66672fa7400a9fe87d767698f629941b309b8e (patch) | |
tree | 50ead1d82d31bae7d508e489988d092f4f3a27fd | |
parent | 40bbd620c4eaf41eb39359f9a0eb1e8188d77b3a (diff) |
Handle missing license in copyright file
-rw-r--r-- | load_copyright.py | 2 |
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] |