From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id oGK3Nu44nmB3hgEAgWs5BA (envelope-from ) for ; Fri, 14 May 2021 10:46:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gORZMu44nmCfMAAAB5/wlQ (envelope-from ) for ; Fri, 14 May 2021 08:46:38 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 61B021BF2C for ; Fri, 14 May 2021 10:46:38 +0200 (CEST) Received: from localhost ([::1]:36576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhTSv-0003fm-BQ for larch@yhetil.org; Fri, 14 May 2021 04:46:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhTSO-0003du-E8 for guix-patches@gnu.org; Fri, 14 May 2021 04:46:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33421) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhTSM-0004Cd-JO for guix-patches@gnu.org; Fri, 14 May 2021 04:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhTSM-0003Cj-ER for guix-patches@gnu.org; Fri, 14 May 2021 04:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47986] [PATCH] inferior: Support querying package replacements. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 14 May 2021 08:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47986 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 47986@debbugs.gnu.org Received: via spool by 47986-submit@debbugs.gnu.org id=B47986.162098193312276 (code B ref 47986); Fri, 14 May 2021 08:46:02 +0000 Received: (at 47986) by debbugs.gnu.org; 14 May 2021 08:45:33 +0000 Received: from localhost ([127.0.0.1]:44967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhTRt-0003Bw-L0 for submit@debbugs.gnu.org; Fri, 14 May 2021 04:45:33 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36018) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhTRs-0003Bo-9j for 47986@debbugs.gnu.org; Fri, 14 May 2021 04:45:33 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id CF73027BC78; Fri, 14 May 2021 09:45:31 +0100 (BST) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id ca0eacc7; Fri, 14 May 2021 08:45:31 +0000 (UTC) References: <20210424054509.7740-1-mail@cbaines.net> <87bl9rv8wc.fsf@gnu.org> User-agent: mu4e 1.4.15; emacs 27.1 From: Christopher Baines In-reply-to: <87bl9rv8wc.fsf@gnu.org> Date: Fri, 14 May 2021 09:45:31 +0100 Message-ID: <87y2chd7pw.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620981998; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=pow+UPpeGDdAaZg1IBVc2ckMgoe2JxNaVQbb7/fqkvA=; b=iZfSoLazf7Yv7Ufm9nXpzEyJk6aKDTFTr74Zir+yhPpXFKAjtdJma/Puz0IzyJcQKbff/T WtNNnDj2J/ghhtniGsnzwC1jjsN6hMZtl0YUNATqZHQ2vAY9D/AJQfXF/VBgtntszH7hXQ y8diDxaQje9iUU26NCtoYIt5WNvEuUi8D/jzd5w0QjdXsI26Dk4obaWRyUfi+NFjELi8iv hVyBNO4ceppkdMhD3G6dkbVw9YOSRREOMYnSwbIX9kXGVe6C++llCBAWkcGaSL5MPcedmW ty4usMBIKLtkWzJ30z8PLhA3fij9zd77cZJ8NSiQ2tzVT1kwSMlGdOmEg5MztA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620981998; a=rsa-sha256; cv=none; b=QPL/EYrIPExzi/XRa3ecn84yqLox3kQNRk2rvtqEqc3LvZRBkP6l+ZXI1WE/ZhH3ylKy4o Ngm0SYGGREIMrN3mZhBa9dk8iJqn6CjhYz/28d0MHR46j4LENORsmcSIXHbpNz0VYXNjuk rpKQ4iLnhNFgfw8pI+FdIojoFqCDTfneO67rBMndT+U14ncKsQVPOR8Oy+a72ibt7pcX7z ef62cW36vusRhn8yZcQZHb8dy2IdAxQWfnuiLX9BXcdCKrYIf4NB5peQNDJ64NSkTYX/E1 chkfCLyoh+gD908XwYoEuWhcikvDjMDXcfuzHtotoMjyELWkOElbd7WjdRu+Rw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.55 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 61B021BF2C X-Spam-Score: -4.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: yl907VfavGUX --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Christopher Baines skribis: > >> I'm looking at this to help with adding support for looking up package >> replacements to store in the Guix Data Service. >> >> * guix/inferior.scm (inferior-package-replacement): New procedure. > > Could you add a docstring and ideally a test? (There might be > complications for the test, let=E2=80=99s see how it goes.) I've sent an update patch now. Maybe the test should search out for a package without a replacement, as well as a package with a replacement, so that it tests both cases, but I just went with a simpler approach for now. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmCeOKtfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9XcWNA//c4pagZOJaaNS5gWu7WLrALeB/fS7E7Jn 5TJqbyud4lW2+M9AV8UHjLiF3VyoZNoNPDJZosLw6SkVLXgMbQQWnpklQnuU3Xt6 k3IHXDevS2Y4WuMpVWuOyvvaKoI0DniJ2NlXGKc/3R1FRysqUkxPe3hiPH0X+J+h A4zGHDdVTVii97YJxXaVwovR3Q9VTTAWWIPG8BvNZJfsgbwcgxEy40zo5rYkv3tS Eb1xA6B9S0K1obkWczVQIHHdJAhkONTf1/7NSRCvmlFjgvnKthbbn26k01CGG1yT O0hjgs2je/mrxZe3xEjiF/V3hQ0Wfc42c9VYfTZ6QjuSNZsydD2/sQo9tMRNtmt4 jQ66Xb5NTzhyW03eNlpJMA/Dq91pDVQUvzMDkzDOsEvfGYdkwemVY8hycb51RmU0 RoHQSuSkpRBg01Ouy0YUBeqrqKmZfTI1LF90WuC/oPWZZpnyTUwCjw5df8kAQQHw +1Fv8HDpXS8+U6sh4jfTxZ7kSDs901Zx1LygN6EOdrDpgEwwEUz3t2TGugxqBNYz uOMfNvvu4JRIIe0CoEVIFReJSxRjx0J9bfxXXgjunxivVRrTGMupPz4ILklv4ML7 Ad9hTq0SxoXkQ7FC4jiEyuc/PJT20Kil/OGRg8rNcHon0Os6ob2X07hDsOrE9u08 AYoVlto25WI= =oGeG -----END PGP SIGNATURE----- --=-=-=--