From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id A730D138A1A for ; Wed, 11 Feb 2015 17:37:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 149CEE0930; Wed, 11 Feb 2015 17:37:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4407FE092C for ; Wed, 11 Feb 2015 17:37:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D52C34081A for ; Wed, 11 Feb 2015 17:37:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D61A1118B2 for ; Wed, 11 Feb 2015 17:37:50 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <1423675828.7243efa95b7f2da8f1d61af8a2ad643d9f10a8fa.dolsen@gentoo> Subject: [gentoo-commits] proj/gentoo-keys:master commit in: gkeys/gkeys/ X-VCS-Repository: proj/gentoo-keys X-VCS-Files: gkeys/gkeys/actions.py X-VCS-Directories: gkeys/gkeys/ X-VCS-Committer: dolsen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 7243efa95b7f2da8f1d61af8a2ad643d9f10a8fa X-VCS-Branch: master Date: Wed, 11 Feb 2015 17:37:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c2d8262c-ab49-4ee8-bb99-5d6e00d35bfc X-Archives-Hash: 15e5e1f3704e820b5b1fbd955d25e644 commit: 7243efa95b7f2da8f1d61af8a2ad643d9f10a8fa Author: Brian Dolbec gentoo org> AuthorDate: Wed Feb 11 17:22:34 2015 +0000 Commit: Brian Dolbec gentoo org> CommitDate: Wed Feb 11 17:30:28 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/gentoo-keys.git;a=commit;h=7243efa9 gkeys/actions.py: _verify() Properly report a failed search --- gkeys/gkeys/actions.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index 0a30679..b2b8cf3 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -825,9 +825,11 @@ class Actions(object): args.name = None args.all = False keys = self.key_search(args, data_only=True) - args.category = list(keys)[0] - args.nick = keys[args.category][0].nick - return self.verify(args, messages) + if keys: + args.category = list(keys)[0] + args.nick = keys[args.category][0].nick + return self.verify(args, messages) + messages.append(_unicode("Failed to find gpg key.: 0x%s") % s_keyid) return (verified, messages)