phase1: rename gpg signature files .gpg -> .asc
authorAlexander Couzens <lynxis@fe80.eu>
Fri, 3 Mar 2017 00:27:34 +0000 (01:27 +0100)
committerAlexander Couzens <lynxis@fe80.eu>
Mon, 13 Nov 2017 00:07:41 +0000 (01:07 +0100)
gnupg doesn't recognize .gpg files by it's extension.

> gpg --verify sha256sums.gpg
>> gpg: no signed data
>> gpg: can't hash datafile: No data

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
phase1/signall.sh

index d256131623a3372a76a275172a3dd52dbfc57419..519a7d690e5437e186f443edfcea8b7e24affba1 100755 (executable)
@@ -21,13 +21,13 @@ umask 022
 mkdir "$tmpdir" || finish 2
 tar -C "$tmpdir/" -xzf "$tarball" || finish 3
 
-find "$tmpdir/" -type f -not -name "*.gpg" -exec gpg \
+find "$tmpdir/" -type f -not -name "*.asc" -exec gpg \
        --no-version --batch --yes -a -b \
        ${keyid:+-u "$keyid"} \
        ${comment:+--comment="$comment"} \
        ${GNUPGHOME:+--homedir "$GNUPGHOME"} \
        ${PASSFILE:+--passphrase-file "$PASSFILE"} \
-       -o "{}.gpg" "{}" \; || finish 4
+       -o "{}.asc" "{}" \; || finish 4
 
 tar -C "$tmpdir/" -czf "$tarball" . || finish 5