OSDN Git Service

Fix the upload script to correctly reference the sig files.
authorDavid Cantrell <dcantrel@mortise.boston.redhat.com>
Mon, 4 Dec 2006 03:20:25 +0000 (22:20 -0500)
committerDavid Cantrell <dcantrel@mortise.boston.redhat.com>
Mon, 4 Dec 2006 03:20:25 +0000 (22:20 -0500)
scripts/release/tarball_upload.sh

index b2cf538..da6deb4 100755 (executable)
@@ -120,10 +120,16 @@ for EXT in gz bz2; do
        TARBALL=parted-$VERSION.tar.$EXT
        SHA1FILE=$TARBALL.sha1
 
-       sha1sum $TARBALL > $SHA1FILE
-
        message "* signing $TARBALL to detached signature file $TARBALL.sig"
-       gpg --use-agent -b $TARBALL 
+       gpg --use-agent -b $TARBALL
+       if [ $? -ne 0 ]; then
+               kill $GPGAPID echo "\t-> FAILED"; exit
+       fi
+       echo -e "\t-> success"
+
+       sha1sum $TARBALL > $SHA1FILE
+       message "* signing $SHA1FILE to detached signature file $SHA1FILE.sig"
+       gpg --use-agent -b $SHA1FILE
        if [ $? -ne 0 ]; then
                kill $GPGAPID echo "\t-> FAILED"; exit
        fi