Improve messages in preparep.py.

This commit is contained in:
John Preston 2021-09-13 15:08:48 +03:00
parent 0c42bca111
commit 5a63428093
1 changed files with 25 additions and 18 deletions

View File

@ -247,7 +247,9 @@ def winFailOnEach(command):
return result
def run(command):
print(command)
print('---------------------------------COMMANDS-LIST----------------------------------')
print(command, end='')
print('--------------------------------------------------------------------------------')
if win:
if os.path.exists("command.bat"):
os.remove("command.bat")
@ -330,9 +332,14 @@ def runStages():
if checkResult == 'Good':
print('SKIPPING')
continue
if checkResult == 'Stale' or checkResult == 'Forced':
elif checkResult == 'NotFound':
print('NOT FOUND, ', end='')
elif checkResult == 'Stale' or checkResult == 'Forced':
if checkResult == 'Stale':
print('CHANGED, ', end='')
if rebuildStale:
checkResult == 'Rebuild'
else:
print('(r)ebuild, rebuild (a)ll, (s)kip, (q)uit?: ', end='', flush=True)
while True:
ch = b'r' if rebuildStale else getch()
@ -352,7 +359,7 @@ def runStages():
print('SKIPPING')
continue
clearCacheKey(stage)
print('BUILDING')
print('BUILDING:')
os.chdir(stage['directory'])
commands = removeDir(stage['name']) + '\n' + stage['commands']
if not run(commands):