From cb7c7657eeb02e643be90fd652fa619122319237 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Sun, 1 Jun 2014 21:42:58 -0700 Subject: [PATCH] Generate sha1 and md5 sum file for wheels The run-wheel.sh script echoed sha1 and md5 sums to the job console log but did not write these hashes to files. Write these hashes to files then cat them so that the hashes can be archived while still being written to the console log. Change-Id: If8d9eb8d730401938f8610bef355b5ca15723269 --- .../files/slave_scripts/run-wheel.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/modules/openstack_project/files/slave_scripts/run-wheel.sh b/modules/openstack_project/files/slave_scripts/run-wheel.sh index 0fdc40f91a..ef7f9fd614 100644 --- a/modules/openstack_project/files/slave_scripts/run-wheel.sh +++ b/modules/openstack_project/files/slave_scripts/run-wheel.sh @@ -32,7 +32,12 @@ rm -f dist/*.whl tox -evenv pip install wheel tox -evenv python setup.py bdist_wheel -echo "SHA1sum: " -sha1sum dist/* -echo "MD5sum: " -md5sum dist/* +FILES=dist/*.whl +for f in $FILES +do + echo -n "SHA1sum for $f: " + sha1sum $f | awk '{print $1}' | tee $f.sha1 + + echo -n "MD5sum for $f: " + md5sum $f | awk '{print $1}' | tee $f.md5 +done