From caeaeac50502940e5a372ce40c4fed7d87b62a72 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 24 Apr 2013 20:53:45 +0100 Subject: Check for more than one summary being used --- license-summary | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'license-summary') 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): -- cgit v1.2.1