Browse Source

run licensecheck on the first 100 lines (necessary for munin.py

Natenom/support-murmur-13-1446181288462
Michael Ziegler 15 years ago
parent
commit
f2e254a10c
  1. 2
      hg/licensecheck.py

2
hg/licensecheck.py

@ -24,7 +24,7 @@ def checkfile( filename ):
if os.path.splitext( filename )[1] not in types_to_check: if os.path.splitext( filename )[1] not in types_to_check:
return True; return True;
try: try:
fileproc = os.popen( 'licensecheck %s' % filename );
fileproc = os.popen( 'licensecheck -l=100 %s' % filename );
result = fileproc.read().strip(); result = fileproc.read().strip();
print( "Licensecheck: " + result ); print( "Licensecheck: " + result );
return not result.endswith( "*No copyright* UNKNOWN" ); return not result.endswith( "*No copyright* UNKNOWN" );

Loading…
Cancel
Save