[git] GPGME - branch, javascript-binding, updated. gpgme-1.11.1-85-g6313a2d
by Maximilian Krambach
cvs at cvs.gnupg.org
Tue Jul 31 17:36:57 CEST 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".
The branch, javascript-binding has been updated
via 6313a2de9ee84a9321292f775e4d6c790486d3dc (commit)
from 9d247b7fd5edd11fb5710a057baec671276f5034 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6313a2de9ee84a9321292f775e4d6c790486d3dc
Author: Maximilian Krambach <maximilian.krambach at intevation.de>
Date: Tue Jul 31 17:35:52 2018 +0200
js: fix confusion about loop in last commit
--
* The aim is to iterate through the results of the first request
(all keys), and then add the propert 'hasSecret' to those that
are in the second request (secret Keysring) as well. I messed
this up in a recent change, and it escaped testing.
diff --git a/lang/js/src/Keyring.js b/lang/js/src/Keyring.js
index 8715a47..d25216c 100644
--- a/lang/js/src/Keyring.js
+++ b/lang/js/src/Keyring.js
@@ -79,9 +79,8 @@ export class GPGME_Keyring {
};
}
secondrequest().then(function(answer) {
- for (let i=0; i < answer.keys.length; i++){
+ for (let i=0; i < result.keys.length; i++){
if (prepare_sync === true){
- result.keys[i].hasSecret = undefined;
if (answer && answer.keys) {
for (let j=0;
j < answer.keys.length; j++ ){
-----------------------------------------------------------------------
Summary of changes:
lang/js/src/Keyring.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
hooks/post-receive
--
GnuPG Made Easy
http://git.gnupg.org
More information about the Gnupg-commits
mailing list