From f2e254a10cebd193a097ce882cea0d8a65b9a9f1 Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sun, 20 Jun 2010 00:13:05 +0200 Subject: [PATCH] run licensecheck on the first 100 lines (necessary for munin.py --- hg/licensecheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hg/licensecheck.py b/hg/licensecheck.py index e3dcb37..14162fb 100644 --- a/hg/licensecheck.py +++ b/hg/licensecheck.py @@ -24,7 +24,7 @@ def checkfile( filename ): if os.path.splitext( filename )[1] not in types_to_check: return True; try: - fileproc = os.popen( 'licensecheck %s' % filename ); + fileproc = os.popen( 'licensecheck -l=100 %s' % filename ); result = fileproc.read().strip(); print( "Licensecheck: " + result ); return not result.endswith( "*No copyright* UNKNOWN" );