Changed how init_project.py detects if S++ has been updated.

This commit is contained in:
Patrick Wuttke 2025-07-04 14:50:03 +02:00
parent 0d9c25cf45
commit ee12876350

View File

@ -44,11 +44,12 @@ def update_spp() -> None:
try:
exec_checked(['git', 'fetch', 'origin', 'master'])
exec_checked(['git', 'checkout', 'master'])
output = exec_get_output(['git', 'status', '--porcelain'])
if output.strip() == '':
return
exec_checked(['git', 'pull'])
finally:
os.chdir(_root)
output = exec_get_output(['git', 'status', '--porcelain'])
if output.strip() == '':
return
_logger.info('Changes in SCons++ detected, creating commit.')
exec_checked(['git', 'commit', '-m', 'Updated Scons++', 'external/scons-plus-plus'])