debugging meta Makefile gen issue

This commit is contained in:
Eric Froemling 2021-06-17 12:34:48 -05:00
parent bb9b4e3872
commit e0caa9f8c4
No known key found for this signature in database
GPG Key ID: 89C93F0F8D6D5A98
2 changed files with 7 additions and 0 deletions

View File

@ -192,6 +192,9 @@ def update(projroot: str, check: bool) -> None:
print(f'{fname} is up to date.')
else:
if check:
if bool(True):
print(f'FOUND------\n{original}\nEND FOUND--------\n'
f'EXPECTED------\n{out}\nEND EXPECTED-------\n')
raise CleanError(f"ERROR: file is out of date: '{fname}'.")
print(f'{Clr.SBLU}Updating {fname} (and cleaning existing output).'
f'{Clr.RST}')

View File

@ -351,6 +351,7 @@ def _empty_line_if(condition: bool) -> List[str]:
def update(projroot: str, check: bool) -> None:
"""main script entry point"""
# pylint: disable=too-many-locals
# pylint: disable=too-many-statements
from efrotools import getconfig
@ -426,6 +427,9 @@ def update(projroot: str, check: bool) -> None:
print(f'{fname} is up to date.')
else:
if check:
if bool(False):
print(f'FOUND------\n{original}\nEND FOUND--------\n'
f'EXPECTED------\n{out}\nEND EXPECTED-------\n')
raise CleanError(f"ERROR: file is out of date: '{fname}'.")
print(f'{Clr.SBLU}Updating: {fname}{Clr.RST}')
with open(fname, 'w') as outfile: