diff options
Diffstat (limited to 'usr/src/tools/onbld/Checks/Copyright.py')
-rw-r--r-- | usr/src/tools/onbld/Checks/Copyright.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/src/tools/onbld/Checks/Copyright.py b/usr/src/tools/onbld/Checks/Copyright.py index 81a80058aa..48b44e59ae 100644 --- a/usr/src/tools/onbld/Checks/Copyright.py +++ b/usr/src/tools/onbld/Checks/Copyright.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!ON_PYTHON # # CDDL HEADER START # @@ -25,6 +25,8 @@ # # Copyright 2008, 2010, Richard Lowe +# Copyright 2019 Joyent, Inc. +# Copyright 2022 MNX Cloud, Inc. # Make sure there is a copyright claim for the current year. @@ -37,7 +39,7 @@ def is_copyright(line): return re.search(r'Copyright (?!\[yyyy\])', line) def is_current_copyright(line): - return re.search(r'Copyright.*\b%s\b' % time.strftime('%Y'), line) + return re.search(r'Copyright %s MNX Cloud, Inc.$' % time.strftime('%Y'), line) def copyright(fh, filename=None, output=sys.stderr): ret = rights = goodrights = 0 @@ -56,8 +58,8 @@ def copyright(fh, filename=None, output=sys.stderr): err(output, "no copyright message found", filename) ret = 1 elif goodrights == 0: - err(output, "no copyright claim for current year found", - filename) + err(output, "'Copyright %s MNX Cloud, Inc.' not found" % + time.strftime('%Y'), filename) ret = 1 return ret |