[Pkg-privacy-commits] [msva-perl] 262/356: tweaks to break out of unnecessary extra key loops if a valid key is found
Ximin Luo
infinity0 at moszumanska.debian.org
Mon Aug 24 07:42:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository msva-perl.
commit 58392cd1a084f575c93c141c4c8250bd3d843c64
Author: Jameson Rollins <jrollins at finestructure.net>
Date: Sat Dec 25 11:57:07 2010 -0500
tweaks to break out of unnecessary extra key loops if a valid key is found
---
Crypt/Monkeysphere/MSVA.pm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Crypt/Monkeysphere/MSVA.pm b/Crypt/Monkeysphere/MSVA.pm
index 86be5da..b576f98 100755
--- a/Crypt/Monkeysphere/MSVA.pm
+++ b/Crypt/Monkeysphere/MSVA.pm
@@ -798,6 +798,7 @@
msvalog('verbose', "...and is fully valid!\n");
$ret->{valid} = JSON::true;
$ret->{message} = sprintf('Successfully validated "%s" through the OpenPGP Web of Trust.', $uid);
+ last;
} else {
msvalog('verbose', "...but is not fully valid.\n");
push(@subvalid_key_fprs, { fpr => $subkey->fingerprint, val => $validity }) if $lastloop;
@@ -805,8 +806,9 @@
}
}
}
+ last if ($foundvalid);
}
- if ($lastloop) {
+ if ($lastloop || $foundvalid) {
last;
} else {
if (!$foundvalid) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/msva-perl.git
More information about the Pkg-privacy-commits
mailing list