aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-07-22 17:42:59 -0400
committerfanquake <fanquake@gmail.com>2021-07-29 11:14:20 +0800
commit056e47d88748062ef6d4b2f3d3dbf93d9cadca14 (patch)
tree47d51590fabca28b15b5faa3a5555bd2263106bd /contrib
parent8f1e3b31b2b4ba024b2adca31a061bbbd2a1378f (diff)
downloadbitcoin-056e47d88748062ef6d4b2f3d3dbf93d9cadca14.tar.xz
guix: Make all.SHA256SUMS rather than codesigned.SHA256SUMS
Github-Pull: #22531 Rebased-From: 33455c76964b9e27b33e970d9722cc47657b291b
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/guix/guix-attest12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/guix/guix-attest b/contrib/guix/guix-attest
index 51d589c1de..396cb39895 100755
--- a/contrib/guix/guix-attest
+++ b/contrib/guix/guix-attest
@@ -207,8 +207,8 @@ mkdir -p "$outsigdir"
exit 1
fi
- temp_codesigned="$(mktemp)"
- trap 'rm -rf -- "$temp_codesigned"' EXIT
+ temp_all="$(mktemp)"
+ trap 'rm -rf -- "$temp_all"' EXIT
if (( ${#codesigned_fragments[@]} )); then
# Note: all.SHA256SUMS attests to all of $sha256sum_fragments, but is
@@ -218,18 +218,18 @@ mkdir -p "$outsigdir"
| sort -k2 \
| sed 's/$/\r/' \
| rfc4880_normalize_document \
- > "$temp_codesigned"
- if [ -e codesigned.SHA256SUMS ]; then
+ > "$temp_all"
+ if [ -e all.SHA256SUMS ]; then
# The SHA256SUMS already exists, make sure it's exactly what we
# expect, error out if not
- if diff -u all.SHA256SUMS "$temp_codesigned"; then
+ if diff -u all.SHA256SUMS "$temp_all"; then
echo "An all.SHA256SUMS file already exists for '${VERSION}' and is up-to-date."
else
shasum_already_exists all.SHA256SUMS
exit 1
fi
else
- mv "$temp_codesigned" codesigned.SHA256SUMS
+ mv "$temp_all" all.SHA256SUMS
fi
else
# It is fine to have the codesigned outputs be missing (perhaps the