diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-02 18:33:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-02 18:33:30 +0000 |
commit | b35b56943e80a83d6e9fc956712f334c6ad7cc39 (patch) | |
tree | 8b577f362f80ffa4fb7b1d5e29b7e420825afbc7 | |
parent | 9400ec015255bbe693c110d0a3bd224f72baf4c7 (diff) | |
download | abuild-b35b56943e80a83d6e9fc956712f334c6ad7cc39.tar.gz abuild-b35b56943e80a83d6e9fc956712f334c6ad7cc39.tar.bz2 abuild-b35b56943e80a83d6e9fc956712f334c6ad7cc39.tar.xz abuild-b35b56943e80a83d6e9fc956712f334c6ad7cc39.zip |
abuild-sign: remove temp signature
-rw-r--r-- | abuild-sign.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/abuild-sign.in b/abuild-sign.in index 86b3b15..aea651f 100644 --- a/abuild-sign.in +++ b/abuild-sign.in @@ -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 |