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 A5CD81381F1 for ; Fri, 27 May 2016 13:59:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54E36224042; Fri, 27 May 2016 13:59:56 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E4951224042 for ; Fri, 27 May 2016 13:59:55 +0000 (UTC) Received: by mail-qk0-f182.google.com with SMTP id n63so79953225qkf.0 for ; Fri, 27 May 2016 06:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=/IelTR7GadTC7ONxnI++N3AS74QF5NsfgKenVx8wGKU=; b=d/TaVh/LWf47su1d5JZ8ewpxmXmbsvIpNQqm+U1k/KzvLxmqn0kzpdG+YK6FK2oGo+ pbZLdKnzo/SQt++KiZjaBngEPI8tWn5+iVHA3brvLHaPbXfQPOcUCq6xZ/d1HxRqFG75 dWTQYDit4YwcMOJBvWymIwDNXP1b3Fjx47PocG+Yu14M7UjDcngTqBXePYgPS+2QVBcv u4LGb8T3szfC3vTb7FflR1dHM+1ktNNH3GgSxHVtjAugnW+OYbwlP3JCw0VLJAsEo2jC pSzlIRFwcaONz6C1CP3dESvY+mkVKUmkLEAdJlF1YL0EiZL+1/aaEEBg8GjG+9eq/9AV bU+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=/IelTR7GadTC7ONxnI++N3AS74QF5NsfgKenVx8wGKU=; b=J4imq4Mppex8zLOzjQsQGixnkkk9uTDST6+ZYjabmFDNXgSjj+7eowVtL4iy2v9oLu 2LxujQv6N9sh1RZgaahyiRmSPSEziOXkqjBzUr3p1Jco226Cenyc+qIs7f8FhIkk0Pix 8Ppw/rS409BVaKeEHbTXnfA4QnmS4R1E9xhGpcNWesC6nEXRw7EUzc3+n+cLpZW4pHZe 1Q/bK6ZArRDHDScrulT2EbRO3H99hA7xwRs4fMxkgeKXeyJq32KsnqPRoVI0FCkviBLT 58OJri9KZrglFsZ7Y6AFIxBPSWpKZMuENcf59m6dccEFwM8r/wzKocyOnpv3icdrmQIf HqxA== X-Gm-Message-State: ALyK8tJaYRRuP/xD+9fimxUS2yEOoGeW1PK4Vln7xQ1lqo0IfRwtW/xSqPFbC071rJfCCPm0DzBETt0LaR3Z9w== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: List to discuss signing and verification of the Gentoo Tree. X-BeenThere: gentoo-keys@gentoo.org X-BeenThere: gentoo-keys@lists.gentoo.org MIME-Version: 1.0 X-Received: by 10.55.140.69 with SMTP id o66mr14319032qkd.188.1464357595188; Fri, 27 May 2016 06:59:55 -0700 (PDT) Received: by 10.237.55.99 with HTTP; Fri, 27 May 2016 06:59:55 -0700 (PDT) Date: Fri, 27 May 2016 13:59:55 +0000 Message-ID: Subject: [gentoo-keys] [PATCH 1/3] gpg.py-Add-listkey-and-listkeys-functions From: Ashish Gupta To: gentoo-keys@lists.gentoo.org Content-Type: multipart/mixed; boundary=001a114eac664932cb0533d352a6 X-Archives-Salt: 57a730ef-048e-44d5-a876-3f0a4098ace6 X-Archives-Hash: b383374c9760f3f1127473d82dc4a738 --001a114eac664932cb0533d352a6 Content-Type: text/plain; charset=UTF-8 --001a114eac664932cb0533d352a6 Content-Type: text/x-patch; charset=US-ASCII; name="0001-gpg.py-Add-listkey-and-listkeys-functions.patch" Content-Disposition: attachment; filename="0001-gpg.py-Add-listkey-and-listkeys-functions.patch" Content-Transfer-Encoding: base64 X-Attachment-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mluZyAob3B0aW9uYWwpIGFyZ3VtZW50IHRvIC0tbGlzdC1rZXlz CisgICAgICAgIEBwYXJhbSBvdXRwdXRmaWxlOiBzdHJpbmcgKG9wdGlvbmFsKSBmaWxlcGF0aCB0 byBwYXNzIHRvCisgICAgICAgICAgICAgICAgICAgICAgICAgICBncGcgZm9yIGl0J3Mgb3V0cHV0 CisgICAgICAgIEBydHlwZSBHbnVQR1Jlc3VsdCBvYmplY3QKKyAgICAgICAgJycnCisgICAgICAg IHJldHVybiBzZWxmLnJ1bkdQRygnbGlzdC1rZXlzJywgaW5wdXRmaWxlPWlkX3N0cmluZywKKyAg ICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dGZpbGU9b3V0cHV0ZmlsZSkKIAogICAgIGRl ZiBmaW5nZXJwcmludChzZWxmLCBpZF9zdHJpbmc9Tm9uZSwgb3V0cHV0ZmlsZT1Ob25lKToKICAg ICAgICAgJycnTGlzdHMgdGhlIGtleSwgd2l0aCB0aGUgZmluZ2VycHJpbnQKLS0gCjIuNC4xMAoK --001a114eac664932cb0533d352a6--