diff options
author | EuAndreh <eu@euandre.org> | 2022-01-13 15:02:40 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2022-01-13 15:02:40 -0300 |
commit | c98d6c8175a1b2fe4452990b6ac19346411b637d (patch) | |
tree | b089c7bf575b58d94951a651be32869a94a2f396 /aux/workflow/sign-tarballs.sh | |
parent | src/xyz/euandreh/queue.scm: Change pymd4c to upstream repository (diff) | |
download | package-repository-c98d6c8175a1b2fe4452990b6ac19346411b637d.tar.gz package-repository-c98d6c8175a1b2fe4452990b6ac19346411b637d.tar.xz |
aux/: Update
Diffstat (limited to 'aux/workflow/sign-tarballs.sh')
-rwxr-xr-x | aux/workflow/sign-tarballs.sh | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh index 3775e28..3ab2bb8 100755 --- a/aux/workflow/sign-tarballs.sh +++ b/aux/workflow/sign-tarballs.sh @@ -23,15 +23,16 @@ assert_arg() { assert_arg "${PROJECT:-}" '-n PROJECT' -SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.xz list | cut -d\ -f2)" +SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.gz list | cut -d\ -f2)" for tag in $(git tag); do COMMIT="$(git rev-list -n1 "$tag")" - if ! echo "$SIGNATURES" | grep -qF "$COMMIT"; then - echo "Adding missing signature to $tag" >&2 - git notes --ref=refs/notes/signatures/tar.xz add -C "$( - git archive --format tar.xz --prefix "$PROJECT-$tag/" "$tag" | - gpg --output - --armor --detach-sign | - git hash-object -w --stdin - )" "$tag" + if echo "$SIGNATURES" | grep -qF "$COMMIT"; then + continue fi + echo "Adding missing signature to $tag" >&2 + git notes --ref=refs/notes/signatures/tar.gz add -C "$( + git archive --format tar.gz --prefix "$PROJECT-$tag/" "$tag" | + gpg --output - --armor --detach-sign | + git hash-object -w --stdin + )" "$tag" done |