Verified Commit 35be9f66 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Ensure untracked files passed to copyright.py require the current year

parent e1ed6c40
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -166,12 +166,13 @@ def main() -> None:
		grafts = get_grafted()
		years = get_file_years(paths, grafts)
		years.update((path, year) for path in get_changed(paths))
		years.update((path, year) for path in paths if path not in years and path.is_file())
	else:
		years = {path: year for path in paths if path.is_file()}

	missing = []
	for path in paths:
		if path.is_file() and path in years and not check_file(path, years[path], opts.min_size):
	for path, year in years.items():
		if not check_file(path, year, opts.min_size):
			missing.append(path)

	if missing: