Print "git diff" output when the checksums tests has failed (#306)

In some cases this output is useful to identify the root of the problem.
See https://github.com/postmarketOS/pmbootstrap/pull/303#issuecomment-319017197
This commit is contained in:
Pablo Castellano 2017-07-31 11:55:51 +02:00 committed by Martijn Braam
parent fe385cad6d
commit e04797f93c
1 changed files with 2 additions and 0 deletions

View File

@ -46,6 +46,8 @@ def check_checksums(package):
if result == "":
print("** The checksums are correct")
else:
print(result)
result = check_output_always(['git', 'diff']).decode()
print(result)
print("** The checksums are not correct")
exit(1)