Skip to content

Commit

Permalink
Avoid rewriting copyright year in the license header
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
Yuri Shkuro committed Jan 1, 2018
1 parent f325b0a commit d7d1c74
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/updateLicense.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@ def update_go_license(name, force=False):
if year == CURRENT_YEAR:
break

new_line = COPYRIGHT_RE.sub('Copyright (c) %d' % CURRENT_YEAR, line)
assert line != new_line, ('Could not change year in: %s' % line)
lines[i] = new_line
changed = True
# Avoid updating the copyright year.
#
# new_line = COPYRIGHT_RE.sub('Copyright (c) %d' % CURRENT_YEAR, line)
# assert line != new_line, ('Could not change year in: %s' % line)
# lines[i] = new_line
# changed = True
break

if not found:
Expand Down

0 comments on commit d7d1c74

Please sign in to comment.