summaryrefslogtreecommitdiff
path: root/license-summary
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2013-04-24 20:53:45 +0100
committerLars Wirzenius <liw@liw.fi>2013-04-24 20:53:45 +0100
commitcaeaeac50502940e5a372ce40c4fed7d87b62a72 (patch)
treec10a2bd915654f7e5c95841ce9ea81c50df1d19c /license-summary
parent7d492d428e526bfd1ad6aa469743dc31e2b161ad (diff)
downloadlicense-summary-caeaeac50502940e5a372ce40c4fed7d87b62a72.tar.gz
Check for more than one summary being used
Diffstat (limited to 'license-summary')
-rwxr-xr-xlicense-summary4
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):