emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PGG incompatible with GnuPG >=2.0.10 (patch included)


From: Chong Yidong
Subject: Re: PGG incompatible with GnuPG >=2.0.10 (patch included)
Date: Thu, 18 Jun 2009 13:51:20 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux)

Ulrich Mueller <address@hidden> writes:

>>>>>> On Thu, 18 Jun 2009, Chong Yidong wrote:
>
>>> Unfortunately, PGG expects the user ID in the "pub" line and therefore
>>> fails to parse the new output format. Attached is a patch that fixes
>>> the problem for me.
>
>> Does this patch behave properly for prior versions of GnuPG?  Could you
>> test?
>
> Sorry, I forgot to mention this. I've tested it with GnuPG versions
> 2.0.11, 2.0.9, and 1.4.9. It seems to work fine with all of them.

Thanks.  I went ahead and checked it in, so that it will be in the
upcoming pretest.  Daiki, do you see any problem with the patch?

--- emacs-orig/lisp/pgg-gpg.el
+++ emacs-lisp/pgg-gpg.el
@@ -189,9 +189,9 @@
   (let ((args (list "--with-colons" "--no-greeting" "--batch"
                    (if all "--list-secret-keys" "--list-keys")
                    string))
-       (key-regexp (concat "^\\(sec\\|pub\\)"
+       (key-regexp (concat "^\\(sec\\|pub\\|uid\\)"
                            ":[^:]*:[^:]*:[^:]*:\\([^:]*\\):[^:]*"
-                           ":[^:]*:[^:]*:[^:]*:\\([^:]*\\):")))
+                           ":[^:]*:[^:]*:[^:]*:\\([^:]+\\):")))
     (with-temp-buffer
       (apply #'call-process pgg-gpg-program nil t nil args)
       (goto-char (point-min))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]