]> granicus.if.org Git - neomutt/commitdiff
Mostly Debian-related fixes from Roland Rosenfeld.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Feb 2000 18:23:05 +0000 (18:23 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 9 Feb 2000 18:23:05 +0000 (18:23 +0000)
muttbug.sh.in

index 87a1bc5d5faad012c420d5cc9ed6f9f9f3e56949..928ec63550c0a803e10db2e7d303234ebef80cd7 100644 (file)
@@ -162,30 +162,27 @@ esac
 if test -f /etc/debian_version ; then
        DEBIAN=yes
        echo $n "Checking whether mutt has been installed as a package... $c"
-       MUTTVERSION="`dpkg -l mutt | grep ^i | awk '{print $3}'`" 2> /dev/null
-       if test "$MUTTVERSION" ; then
+       DEBIANVERSION="`dpkg -l mutt | grep '^[ih] | awk '{print $3}'`" 2> /dev/null
+       if test "$DEBIANVERSION" ; then
                DPKG=yes
        else
                DPKG=no
        fi
        echo "$DPKG"
-       if test "$DPKG" = "no" ; then
-               echo $n "File this bug with Debian? [Y|n] $c"
-               read DPKG
-               case "$DPKG" in
-               [nN])   DPKG=no ;;
-               *)      DPKG=yes ;;
-               esac
-       fi
+       echo $n "File this bug with Debian? [Y|n] $c"
+       read DPKG
+       case "$DPKG" in
+       [nN])   DPKG=no ;;
+       *)      DPKG=yes ;;
+       esac
 else
        DEBIAN=no
        DPKG=no
 fi
 
-test "$MUTTVERSION"  || MUTTVERSION="`mutt -v | head -1 | awk '{print $2}' | tr -d i`"
+MUTTVERSION="`mutt -v | head -1 | awk '{print $2}'`"
 test "$DPKG" = "yes" && SUBMIT="$SUBMIT, $DEBIAN_SUBMIT"
 
-
 exec > ${TEMPLATE}
 
 test "$EMAIL"        && echo "From: $EMAIL"
@@ -197,7 +194,7 @@ echo "To: $SUBMIT"
 echo "Bcc: ${EMAIL-$LOGNAME}"
 echo
 echo "Package: mutt"
-echo "Version: $MUTTVERSION"
+echo "Version: ${DEBIANVERSION-$MUTTVERSION}"
 echo "Severity: $severity"
 echo 
 echo "-- Please type your report below this line"