From: Hamish D <dmishd@gmail.com>
To: Sup developer discussion <sup-devel@rubyforge.org>
Subject: Re: [sup-devel] sup dies when gpgme not present
Date: Thu, 27 Jan 2011 12:02:51 +0000 [thread overview]
Message-ID: <AANLkTi=52GtjhbzqvtMESP4Yn=npir_6x63pNp6sX=SL@mail.gmail.com> (raw)
>> I have some more ideas for improvements, but I'm happy that this
>> reproduces the behaviour of using the gpg binary, and I find sup usage
>> much smoother with this change.
Thank you.
> When the gpgme gem is not installed, this patch makes sup die on start
> with:
>
> --- NameError from thread: main
> uninitialized constant Redwood::CryptoManager::GPGME
> /home/alvherre/Code/sup-mail/lib/sup/crypto.rb:49:in `initialize'
> ...
The code around that line is:
# test if the gpgme gem is available
@gpgme_present =
begin
begin
GPGME.check_version({:protocol => GPGME::PROTOCOL_OpenPGP})
<-- line 49
true
rescue GPGME::Error
false
end
rescue NameError
false
end
So we should rescue the NameError. Could you check whether the code
for your sup looks like that? Could you also temporarily remove the
gpgme gem, update to the latest from master and see if you still get
the same problem?
Thanks in advance, and sorry for not getting back sooner.
Hamish
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2011-01-27 12:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-27 12:02 Hamish D [this message]
2011-01-27 13:26 ` Alvaro Herrera
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=52GtjhbzqvtMESP4Yn=npir_6x63pNp6sX=SL@mail.gmail.com' \
--to=dmishd@gmail.com \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox