diff options
-rwxr-xr-x | license-summary | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/license-summary b/license-summary index 22b7181..90d07c8 100755 --- a/license-summary +++ b/license-summary @@ -58,6 +58,7 @@ class LicenseSummary(cliapp.Application): if self.settings['check']: error = 0 + if without_summary: sys.stderr.write( 'ERROR: The following files have no license summary:\n') @@ -65,6 +66,9 @@ class LicenseSummary(cliapp.Application): sys.stderr.write(' %s\n' % filename) error = 1 + if len(self.summaries) > 1: + sys.stderr.write('ERROR: More than one summary in use\n') + sys.exit(error) def report_group(self, summary, filenames): |