Message ID | 20241016052953.16069-1-ngraves@ngraves.fr |
---|---|
State | New |
Headers | show
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 53A0527BBE9; Wed, 16 Oct 2024 06:31:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DB32E27BBE2 for <patchwork@mira.cbaines.net>; Wed, 16 Oct 2024 06:31:07 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1t0wcQ-0007dv-UL; Wed, 16 Oct 2024 01:30:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t0wcO-0007dR-J9 for guix-patches@gnu.org; Wed, 16 Oct 2024 01:30:44 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t0wcO-0001lG-5m for guix-patches@gnu.org; Wed, 16 Oct 2024 01:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=dNCYeQ0XhyQ4PycbZWmYec5TmChI3NfXPBQ1fYdbaKs=; b=bBEOwQJF0AP0vZGeMg37gfNlX4Mg2Bzo/PVBJjTsQUO93DwZQbNUWFUOYmqXHZZdpcdLTjqiqcoZCiliL52q/ZjsmMv9SgB4XTU7gRIGSCa/ItAYK8YVAjXwpAdp47jG8UxFE9IeH6Z+CJEKygHHNawfvzHkJWNc8nIZ2z9Y7cUIdl5Ic8LkdiSrYn41ihpUWBr71qKs5Va7qxWaJKwO3GW2QMI0UiVHy+V2Lqak9vfGI/fag4FTbr/L2zaq9aX4aZgMPWeoopsW1B+hkul23EQXhsEq3RYyy3EMj0Jje/55BMy9nQ0dHKvuchPJXP+TvhBjSvOskjaeqrUeOQQgpQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1t0wcg-0003xf-Nb for guix-patches@gnu.org; Wed, 16 Oct 2024 01:31:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73833] [PATCH] guix: import: composer: Improve composer-fetch. Resent-From: Nicolas Graves <ngraves@ngraves.fr> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Oct 2024 05:31:02 +0000 Resent-Message-ID: <handler.73833.B.172905664115165@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73833 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73833@debbugs.gnu.org Cc: Nicolas Graves <ngraves@ngraves.fr> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172905664115165 (code B ref -1); Wed, 16 Oct 2024 05:31:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2024 05:30:41 +0000 Received: from localhost ([127.0.0.1]:58215 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1t0wcK-0003wX-QH for submit@debbugs.gnu.org; Wed, 16 Oct 2024 01:30:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:54778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <ngraves@ngraves.fr>) id 1t0wcH-0003wJ-Un for submit@debbugs.gnu.org; Wed, 16 Oct 2024 01:30:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ngraves@ngraves.fr>) id 1t0wbu-0007c7-9f for guix-patches@gnu.org; Wed, 16 Oct 2024 01:30:15 -0400 Received: from 5.mo560.mail-out.ovh.net ([87.98.181.248]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <ngraves@ngraves.fr>) id 1t0wbp-0001Oq-J4 for guix-patches@gnu.org; Wed, 16 Oct 2024 01:30:13 -0400 Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.25.23]) by mo560.mail-out.ovh.net (Postfix) with ESMTP id 4XT00Q2mjSz1TRr for <guix-patches@gnu.org>; Wed, 16 Oct 2024 05:29:58 +0000 (UTC) Received: from ghost-submission-55b549bf7b-xsbvw (unknown [10.111.174.60]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 6DF841FE03; Wed, 16 Oct 2024 05:29:56 +0000 (UTC) Received: from ngraves.fr ([37.59.142.98]) by ghost-submission-55b549bf7b-xsbvw with ESMTPSA id twRHLVRPD2f2KgAAbjPiVg (envelope-from <ngraves@ngraves.fr>); Wed, 16 Oct 2024 05:29:56 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-98R00243ad54e2-0162-48ab-9e3c-2de306efc9d5, BC581D0AC8476CF08C37484D3F5A4D28D157660B) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 89.207.171.135 Date: Wed, 16 Oct 2024 07:29:49 +0200 Message-ID: <20241016052953.16069-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 5716756779975631586 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdegkedgleejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepkeffgeetfffgffejgeejvdffgfdtvdeuueetgfefuedvjeegvdegjeejveeuueevnecukfhppeduvdejrddtrddtrddupdekledrvddtjedrudejuddrudefhedpfeejrdehledrudegvddrleeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheeitddpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=dNCYeQ0XhyQ4PycbZWmYec5TmChI3NfXPBQ1fYdbaKs=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1729056598; v=1; b=tBDymzZtlLN+1c9yewPmXihfpGDgtA+HFnlRIuVbK/dleQF4dEbbpdFc15LgUFOGHh1pRTfu ftD1k1TKJuY4ZFTH+tlJ2BgFsGPo4E2TeASjTp9zSdKei/7riGiduLGm7PbFhu60J60ASukyJQj hVnxDCdx47A88Qj3eEuniQb4p38i6A/eKmnu/oMXKmux5bHq9JTAgzw8SPgrFA5ayQse6Wwd1Z9 2m0X0UsQHfEC/6HN7eHBg57z4dYXUuxKvdVJZzPTQI6hvkWPROvrlci3KFc+4Pju/OP9ZDtS7k4 r6HkiZG0QplNHEsmPTqdCB0MCMZYH+15haBorPkOP1kWw== Received-SPF: pass client-ip=87.98.181.248; envelope-from=ngraves@ngraves.fr; helo=5.mo560.mail-out.ovh.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Nicolas Graves <ngraves@ngraves.fr> X-ACL-Warn: , Nicolas Graves via Guix-patches <guix-patches@gnu.org> From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#73833] guix: import: composer: Improve composer-fetch.
|
expand
|
diff --git a/guix/import/composer.scm b/guix/import/composer.scm index abc9023be4..febde97791 100644 --- a/guix/import/composer.scm +++ b/guix/import/composer.scm @@ -111,7 +111,7 @@ (define* (composer-fetch name #:key (version #f)) (let ((pkgs (assoc-ref pkg "packages"))) (or (assoc-ref pkgs name) pkg)))))) (if packages - (json->composer-package + (and=> (if version (assoc-ref packages version) (cdr @@ -125,7 +125,8 @@ (define* (composer-fetch name #:key (version #f)) cur-max)) (_ cur-max))) (cons* "0.0.0" #f) - packages)))) + packages))) + json->composer-package) #f))) (define (php-package-name name)