[Martin Meredith]
> When using debsign, if you hit ctrl+c when it asks you for a password,
> then this makes it so that the terminal is noecho.

This is actually a bug in gpg, but does this help?  Works for me.
(Not tagging +patch, because I expect this bug to be reassigned anyway.)

Peter

--- debsign.orig        2005-08-06 17:12:56.000000000 -0500
+++ debsign     2005-08-06 17:14:55.000000000 -0500
@@ -105,6 +105,7 @@
 # of dpkg-buildpackage, because we do not know all of the necessary
 # information when this function is read first.
 signfile () {
+    local savestty=$(stty -g)
     if [ $signinterface = gpg ]
     then
        gpgversion=`gpg --version | head -n 1 | cut -d' ' -f3`
@@ -118,6 +119,7 @@
                    --armor --textmode --output - - > "$1.asc" || \
                { SAVESTAT=$?
                  echo "$PROGNAME: gpg error occurred!  Aborting...." >&2
+                 stty $savestty
                  exit $SAVESTAT
                }
        else
@@ -127,12 +129,14 @@
                        --armor --textmode --output - - > "$1.asc" || \
                { SAVESTAT=$?
                  echo "$PROGNAME: gpg error occurred!  Aborting...." >&2
+                 stty $savestty
                  exit $SAVESTAT
                }
        fi
     else
        $signcommand -u "$2" +clearsig=on -fast < "$1" > "$1.asc"
     fi
+    stty $savestty
     echo
     PRECIOUS_FILES=$(($PRECIOUS_FILES + 1))
     mv -f -- "$1.asc" "$1"

Attachment: signature.asc
Description: Digital signature

Reply via email to