This ends up being rather cleaner than messing about with `$noactp' and
whether `$keyid' is defined.
###--------------------------------------------------------------------------
### Parse options.
###--------------------------------------------------------------------------
### Parse options.
-bogusp=nil noactp=nil
-unset buildopts keyid
+bogusp=nil noactp=nil signp=nil
+unset buildopts
while getopts "haik:nt:" opt; do
case $opt in
h)
while getopts "haik:nt:" opt; do
case $opt in
h)
case $rc in 0) ;; *) exit $rc ;; esac
## Maybe sign the result.
case $rc in 0) ;; *) exit $rc ;; esac
## Maybe sign the result.
-case $?,${keyid+t},$noactp in
- 0,t,nil) debsign -k"$keyid" "${pkg}_${ver}_"*.changes ;;
+case $signp in
+ t) debsign -k"$keyid" "${pkg}_${ver}_"*.changes ;;