Package: devscripts Version: 2.8.10 Severity: important Tags: patch
gnupg 1.4.0 uses --list-options no-show-policy-urls instead of
--no-show-policy-url
The attached patch works for both 1.2.* and 1.<4->*.
Ciao
Elimar
--
Alles was viel bedacht wird ist bedenklich!;-)
Friedrich Nietzsche
diff -Nur a/debsign.sh b/debsign.sh
--- a/debsign.sh 2005-02-05 17:33:00.000000000 +0100
+++ b/debsign.sh 2005-02-05 20:28:41.000000000 +0100
@@ -107,13 +107,26 @@
signfile () {
if [ $signinterface = gpg ]
then
- (cat "$1" ; echo "") | \
- $signcommand --local-user "$2" --clearsign --no-show-policy-url \
- --armor --textmode --output - - > "$1.asc" || \
- { SAVESTAT=$?
- echo "$PROGNAME: gpg error occurred! Aborting...." >&2
- exit $SAVESTAT
- }
+ gpgversion=`gpg --version | grep GnuPG | awk '{print $3}'`
+ if (( ${gpgversion:2:1} >=4 ))
+ then
+ (cat "$1" ; echo "") | \
+ $signcommand --local-user "$2" --clearsign \
+ --list-options no-show-policy-urls \
+ --armor --textmode --output - - > "$1.asc" || \
+ { SAVESTAT=$?
+ echo "$PROGNAME: gpg error occurred! Aborting...." >&2
+ exit $SAVESTAT
+ }
+ else
+ (cat "$1" ; echo "") | \
+ $signcommand --local-user "$2" --clearsign
--no-show-policy-url \
+ --armor --textmode --output - - > "$1.asc" || \
+ { SAVESTAT=$?
+ echo "$PROGNAME: gpg error occurred! Aborting...." >&2
+ exit $SAVESTAT
+ }
+ fi
else
$signcommand -u "$2" +clearsig=on -fast < "$1" > "$1.asc"
fi
signature.asc
Description: Digital signature

