mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-10-02 06:47:23 +00:00
Print a useful message when the file is out of date
Don't print the differences: interested users can just run `git diff` (or save the old file and run `comm`). Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -35,7 +35,11 @@ def main():
|
|||||||
data.update_shadow_file(args.always_update)
|
data.update_shadow_file(args.always_update)
|
||||||
else:
|
else:
|
||||||
up_to_date = True
|
up_to_date = True
|
||||||
up_to_date &= data.compare_shadow_file_verbosely()
|
if not data.is_shadow_file_up_to_date():
|
||||||
|
print(f'{data.shadow_file_path()} is out of date')
|
||||||
|
print(f'After adding or removing a conifg option, you need to run')
|
||||||
|
print(f'{sys.argv[0]} and commit the result.')
|
||||||
|
up_to_date = False
|
||||||
sys.exit(0 if up_to_date else 1)
|
sys.exit(0 if up_to_date else 1)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user