mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-24 07:53:30 +08:00
debugging meta Makefile gen issue
This commit is contained in:
parent
bb9b4e3872
commit
e0caa9f8c4
@ -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}')
|
||||
|
||||
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user