mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-04-01 22:48:56 +00:00
abuild-sign: remove temp signature
This commit is contained in:
parent
9400ec0152
commit
b35b56943e
@ -73,12 +73,11 @@ for f in "$@"; do
|
||||
cd "$repo" || die "Failed to sign $i"
|
||||
sig=".SIGN.RSA.$keyname"
|
||||
openssl dgst -sha1 -sign "$privkey" -out "$sig" "$i" || die "Failed to sign $i"
|
||||
cd "$repo"
|
||||
tmptargz=$(mktemp)
|
||||
tar -c "$sig" | abuild-tar --cut | gzip -9 > "$tmptargz"
|
||||
tmpsigned=$(mktemp)
|
||||
cat "$tmptargz" "$i" > "$tmpsigned"
|
||||
rm -f "$tmptargz"
|
||||
rm -f "$tmptargz" "$sig"
|
||||
mv "$tmpsigned" "$i"
|
||||
chmod 644 "$i"
|
||||
if [ -z "$quiet" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user