From afa1b2768f7f2a14c11f674e9ce8025f40cb2d4c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 2 Feb 2022 14:45:10 -0500 Subject: [PATCH] Fix sha512sum file generation Change sha512sum command line so that it does not include subdirectory paths with the filename in the generated file, as that makes it harder to check the sha512sum later via the --check option. Signed-off-by: Simo Sorce --- ci/before-deploy.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/before-deploy.sh b/ci/before-deploy.sh index dc446374..3b78ff53 100755 --- a/ci/before-deploy.sh +++ b/ci/before-deploy.sh @@ -57,7 +57,8 @@ with tarfile.open("tag_build/${PKG_NAME_VER}.tar", mode="a:") as tf: tf.add("README.rst", arcname="${PKG_NAME_VER}/README.rst") EOF -gzip ./tag_build/${PKG_NAME_VER}.tar - -sha512sum --binary ./tag_build/${PKG_NAME_VER}.tar.gz > ./tag_build/${PKG_NAME_VER}.sha512sum +pushd ./tag_build +gzip ${PKG_NAME_VER}.tar +sha512sum --binary ${PKG_NAME_VER}.tar.gz > ${PKG_NAME_VER}.sha512sum +popd