Skip to content

Commit 33455c7

Browse files
committed
guix: Make all.SHA256SUMS rather than codesigned.SHA256SUMS
1 parent 5d83e7d commit 33455c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/guix/guix-attest

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ mkdir -p "$outsigdir"
207207
exit 1
208208
fi
209209

210-
temp_codesigned="$(mktemp)"
211-
trap 'rm -rf -- "$temp_codesigned"' EXIT
210+
temp_all="$(mktemp)"
211+
trap 'rm -rf -- "$temp_all"' EXIT
212212

213213
if (( ${#codesigned_fragments[@]} )); then
214214
# Note: all.SHA256SUMS attests to all of $sha256sum_fragments, but is
@@ -218,18 +218,18 @@ mkdir -p "$outsigdir"
218218
| sort -k2 \
219219
| sed 's/$/\r/' \
220220
| rfc4880_normalize_document \
221-
> "$temp_codesigned"
222-
if [ -e codesigned.SHA256SUMS ]; then
221+
> "$temp_all"
222+
if [ -e all.SHA256SUMS ]; then
223223
# The SHA256SUMS already exists, make sure it's exactly what we
224224
# expect, error out if not
225-
if diff -u all.SHA256SUMS "$temp_codesigned"; then
225+
if diff -u all.SHA256SUMS "$temp_all"; then
226226
echo "An all.SHA256SUMS file already exists for '${VERSION}' and is up-to-date."
227227
else
228228
shasum_already_exists all.SHA256SUMS
229229
exit 1
230230
fi
231231
else
232-
mv "$temp_codesigned" codesigned.SHA256SUMS
232+
mv "$temp_all" all.SHA256SUMS
233233
fi
234234
else
235235
# It is fine to have the codesigned outputs be missing (perhaps the

0 commit comments

Comments
 (0)