mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 14:33:28 +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.')
|
print(f'{fname} is up to date.')
|
||||||
else:
|
else:
|
||||||
if check:
|
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}'.")
|
raise CleanError(f"ERROR: file is out of date: '{fname}'.")
|
||||||
print(f'{Clr.SBLU}Updating {fname} (and cleaning existing output).'
|
print(f'{Clr.SBLU}Updating {fname} (and cleaning existing output).'
|
||||||
f'{Clr.RST}')
|
f'{Clr.RST}')
|
||||||
|
|||||||
@ -351,6 +351,7 @@ def _empty_line_if(condition: bool) -> List[str]:
|
|||||||
def update(projroot: str, check: bool) -> None:
|
def update(projroot: str, check: bool) -> None:
|
||||||
"""main script entry point"""
|
"""main script entry point"""
|
||||||
# pylint: disable=too-many-locals
|
# pylint: disable=too-many-locals
|
||||||
|
# pylint: disable=too-many-statements
|
||||||
|
|
||||||
from efrotools import getconfig
|
from efrotools import getconfig
|
||||||
|
|
||||||
@ -426,6 +427,9 @@ def update(projroot: str, check: bool) -> None:
|
|||||||
print(f'{fname} is up to date.')
|
print(f'{fname} is up to date.')
|
||||||
else:
|
else:
|
||||||
if check:
|
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}'.")
|
raise CleanError(f"ERROR: file is out of date: '{fname}'.")
|
||||||
print(f'{Clr.SBLU}Updating: {fname}{Clr.RST}')
|
print(f'{Clr.SBLU}Updating: {fname}{Clr.RST}')
|
||||||
with open(fname, 'w') as outfile:
|
with open(fname, 'w') as outfile:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user