[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/kdepim/enterprise4/kdepim/libkleo/backends/qgpgme
From: Marc Mutz <mutz () kde ! org>
Date: 2010-01-27 22:11:03
Message-ID: 1264630263.239124.32740.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1081204 by mutz:
Merge from e35: Fake a successful (but empty) keylisting result when the operation \
fails with GPG_ERR_EOF. Happens when no .gnupg exists (kolab/issue2620)
M +4 -0 qgpgmekeylistjob.cpp
--- branches/kdepim/enterprise4/kdepim/libkleo/backends/qgpgme/qgpgmekeylistjob.cpp \
#1081203:1081204 @@ -112,6 +112,10 @@
return make_tuple( this_result, keys, QString(), Error() );
else
goto retry;
+ } else if ( this_result.error().code() == GPG_ERR_EOF ) {
+ // early end of keylisting (can happen when ~/.gnupg doesn't
+ // exist). Fakeing an empty result:
+ return make_tuple( KeyListResult(), std::vector<Key>(), QString(), Error() \
); }
// ok, that seemed to work...
result.mergeWith( this_result );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic