From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4JLPNYHNLmP7FgAAbAwnHQ (envelope-from ) for ; Sat, 24 Sep 2022 11:27:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aBDoNYHNLmPTUgEA9RJhRA (envelope-from ) for ; Sat, 24 Sep 2022 11:27:29 +0200 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 9DB70FF8A for ; Sat, 24 Sep 2022 11:27:29 +0200 (CEST) Received: from localhost ([::1]:51432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oc1RY-0000FW-R2 for larch@yhetil.org; Sat, 24 Sep 2022 05:27:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36950) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc1R9-0000Co-3p for guix-patches@gnu.org; Sat, 24 Sep 2022 05:27:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43227) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oc1R8-0007xI-AK for guix-patches@gnu.org; Sat, 24 Sep 2022 05:27:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oc1R8-0001QK-69 for guix-patches@gnu.org; Sat, 24 Sep 2022 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57460] [PATCH 00/19] Refresh to specific version Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 24 Sep 2022 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57460 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Hartmut Goebel Cc: 57460@debbugs.gnu.org Received: via spool by 57460-submit@debbugs.gnu.org id=B57460.16640115885428 (code B ref 57460); Sat, 24 Sep 2022 09:27:02 +0000 Received: (at 57460) by debbugs.gnu.org; 24 Sep 2022 09:26:28 +0000 Received: from localhost ([127.0.0.1]:42305 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc1Qa-0001PT-E0 for submit@debbugs.gnu.org; Sat, 24 Sep 2022 05:26:28 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oc1QY-0001PF-C4 for 57460@debbugs.gnu.org; Sat, 24 Sep 2022 05:26:26 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38746) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc1QT-0007sN-5o; Sat, 24 Sep 2022 05:26:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=FqtQNSneW/MGFFY8PmfKumlk19FngWqi6qpOUsvOA1I=; b=jlFstyRvs2/KVKtkJZbq 0PP4yQjC/a8bdVyIFOnzgG2z/Jg/A3JmfXCL6IQQF4rIw6dwRByhRtyC7R4G9rhu93qb7hdRXAvS/ 8tBtNDS4cRZAG7JJpjJIc+r73RCVKMXnmn2qFC2OA9X1myvEQeGoq4rXWutyoz80/qBwNeXEP8Nut 427Ckm8P3w2O9/Wdu7HPzEVdqcUkXk4RLx0acuUllIxbBqsKlL/z6TMradC5/VeX/mN2et1Go15SM 6bFGhAOT9eeNQJXnchOCojMprg6wVflau5Ob3LAFx4I2gbeKlhExumk+mNSM93Lus2fd8bcEsoaOU AL2lVZopWyWAdw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53562 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oc1QS-00067d-On; Sat, 24 Sep 2022 05:26:20 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sat, 24 Sep 2022 11:26:19 +0200 In-Reply-To: (Hartmut Goebel's message of "Sun, 28 Aug 2022 15:18:35 +0200") Message-ID: <8735chdsxw.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1664011649; 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: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=FqtQNSneW/MGFFY8PmfKumlk19FngWqi6qpOUsvOA1I=; b=qb7woWEZ1u+vM0RjGNgcD2WE28Unnys67O6ScFLT4eCWufjs3hjotgQwm+9jbPD69HMAfO l/uyGh6hXvm4calnMJUKeZglSVg20SEmCTYy0HSTjLu0EJy2UEfp8O5x5JjQO/iKlOnXMS pnPlIo0qVyogrwmcH3pHX11xJeOaDPhLfbmsR8kiG+do5LqN6MVEWg1dnhslvPOGtO3XLH v0nNfX/v06i9iDCQFTr3QTHIKkwu9DabVUf/BCZLCbnflDVZUMwgtW+otcvOy2/qFOQkIB 5ajvFmd3T94AH6sHfEpXuqdZnUJa0Hi7y7PKVp9glUz1rQ0yqFIPg4IgnMvn5A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664011649; a=rsa-sha256; cv=none; b=hbXrzFQCRlYl/WmG5eXI09JlKt4gNrFK1y8Nso2Ak+VjtyKnvwNZYR4Gk5sgNk4HXZRh48 VZ3fij8anZhoIdZD3IvOXcSaMD0AGOxP3tBsVT0L4xm2+OQ8kmv545ifkF5b/YQEF7yDzw QPgQvGbf7IFgkja5Gh4PHpL7QegPw6xbI5h5LaHro4Ac1IxEz2G4EdTyMdwmSZ5qRObI49 6lonxSgLhKBVVIm1fKOLjEDdMy7Oq0K39xu0AbO4PUFckeF9kus56aCqtWPOIR4cxNIrek Q6CR4C5J0qCsyJosN++3ykM5qrVYar0qhtGWyKaga1k6A242ezckuIzyVNXzFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jlFstyRv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=jlFstyRv; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9DB70FF8A X-Spam-Score: -3.36 X-Migadu-Scanner: scn0.migadu.com X-TUID: J95MaBfMfzku Hartmut Goebel skribis: > * guix/import/github.scm(latest-released-version): Add keyword-argument > 'version'. If version is given, try to find the respective release. > (latest-releease) Rename to (import-release), add keyword-argument 'ver= sion' > and pass it on to latest-released-version. (Same comment as before.) > - (match (sort (filter-map release->version > - (match (remove pre-release? json) > - (() json) ; keep everything > - (releases releases))) > - (lambda (x y) (version>? (car x) (car y)))) > + (let ((releases (filter-map release->version > + (match (remove pre-release? json) > + (() json) ; keep everyth= ing > + (releases releases))))) Please reindent the =E2=80=98match=E2=80=99 form as above. > + (match (if version > + ;; find matching release version > + (filter (lambda (x) (string=3D? version (car x))) > + releases) Same as earlier: prefer =E2=80=98match-lambda=E2=80=99 over =E2=80=98car=E2= =80=99. Otherwise LGTM.