Skip to content

Commit 7e621c6

Browse files
author
Pavel Marek
committed
Make build_binary_pkgs more verbose
1 parent 8b4da69 commit 7e621c6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mx.fastr/mx_fastr.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,12 @@ def build_binary_pkgs(args_in, **kwargs):
898898
pkgcache(['--print-api-checksum', '--vm', 'fastr'])
899899
finally:
900900
sys.stdout = sys.__stdout__
901+
checksum_lines = string_io.getvalue().splitlines(keepends=False)
902+
mx.log(f"===== Output of 'mx r-pkgcache --print-api-checksum --vm fastr': =====")
903+
mx.log(string_io.getvalue())
904+
mx.log("===== End of output of 'mx r-pkgcache --print-api-checksum --vm fastr' =====")
901905
with open(os.path.join(pkgs_path, 'api-checksum.txt'), 'w') as f:
902-
checksum = string_io.getvalue().splitlines(keepends=False)[-1]
906+
checksum = checksum_lines[-1]
903907
f.write(checksum)
904908
# creates the tarball
905909
result_tarball = os.path.join(dest_dir, pkgs_name + '.tar.gz')

0 commit comments

Comments
 (0)