aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Michael Lumish <mlumish@google.com>2016-01-12 10:25:38 -0800
committerGravatar Michael Lumish <mlumish@google.com>2016-01-12 10:25:38 -0800
commitbff0d4f2f6bd82b90b11afab456a832d36b9c434 (patch)
tree1486772d18803c9f82a9c552f4b9103cdc2592e6
parent2a9e76fa084bdd3ba4d006d709c002644b8d48e6 (diff)
parent750d3ed81666206a43dab96fa35dbd6e4aee04e3 (diff)
Merge pull request #4685 from ctiller/copywrong
Fix check_copyright.py
-rwxr-xr-xtools/distrib/check_copyright.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/distrib/check_copyright.py b/tools/distrib/check_copyright.py
index f54e5fad80..5158c11417 100755
--- a/tools/distrib/check_copyright.py
+++ b/tools/distrib/check_copyright.py
@@ -117,6 +117,7 @@ def log(cond, why, filename):
# scan files, validate the text
+ok = True
for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD',
shell=True).splitlines():
if filename in KNOWN_BAD: continue
@@ -130,7 +131,6 @@ for filename in subprocess.check_output('git ls-tree -r --name-only -r HEAD',
log(args.skips, 'skip', filename)
continue
text = load(filename)
- ok = True
m = re.search(re_license, text)
if m:
last_modified = int(subprocess.check_output('git log -1 --format="%ad" --date=short -- ' + filename, shell=True)[0:4])