From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: New =?utf-8?Q?=E2=80=9Cguix_refresh=E2=80=9D?= command Date: Fri, 24 May 2013 14:54:18 +0200 Message-ID: <87y5b4y1vp.fsf@gnu.org> References: <87ehdzlg89.fsf@gnu.org> <87d2t2ehnp.fsf@karetnikov.org> <87d2t24ejj.fsf@gnu.org> <87bo8jfziy.fsf@karetnikov.org> <87obcjt1x5.fsf@gnu.org> <87fvxu30pi.fsf@karetnikov.org> <877gj5su70.fsf@gnu.org> <87obchmx23.fsf@karetnikov.org> <87fvxc4r3k.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:46281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfrW1-0000ql-M5 for bug-guix@gnu.org; Fri, 24 May 2013 08:54:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfrVs-00027x-9r for bug-guix@gnu.org; Fri, 24 May 2013 08:54:37 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=43751 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfrVr-00025j-OC for bug-guix@gnu.org; Fri, 24 May 2013 08:54:27 -0400 In-Reply-To: <87fvxc4r3k.fsf@karetnikov.org> (Nikita Karetnikov's message of "Fri, 24 May 2013 14:19:59 +0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Nikita Karetnikov Cc: bug-guix@gnu.org Nikita Karetnikov skribis: > (define (gnupg-receive-keys key-id server) > - (system* (%gpg-command) "--keyserver" server "--recv-keys" key-id)) > + (system* (%gpg-command) > + "--keyserver" server > + "--search-keys" (string-append "0x" key-id))) As the name suggests, this procedure is meant to download a key, not to search for a key. The interactive behavior you wanted you involve telling the user that a key needs to be downloaded before calling =E2=80=98gnupg-receive-keys=E2=80= =99. That could be done by changing =E2=80=98gnupg-verify*=E2=80=99. An optiona= l argument could be added to select between interactive behavior (=E2=80=9Cdo you want= to download this key and add it to your keyring?=E2=80=9D), always-download, a= nd never-download. WDYT? Ludo=E2=80=99.