From patchwork Sun Aug 28 13:18:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 42027 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5E64927BBEA; Sun, 28 Aug 2022 14:20:43 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS 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 1F81A27BBE9 for ; Sun, 28 Aug 2022 14:20:43 +0100 (BST) Received: from localhost ([::1]:44398 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSIDS-0003Ur-9H for patchwork@mira.cbaines.net; Sun, 28 Aug 2022 09:20:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSICs-0002p3-Fp for guix-patches@gnu.org; Sun, 28 Aug 2022 09:20:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39836) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSICs-0002eW-5I for guix-patches@gnu.org; Sun, 28 Aug 2022 09:20:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSICs-0006yF-1e for guix-patches@gnu.org; Sun, 28 Aug 2022 09:20:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57460] [PATCH 07/20] refresh: Allow updating to a specific version (egg) Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Aug 2022 13:20:06 +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: 57460@debbugs.gnu.org Received: via spool by 57460-submit@debbugs.gnu.org id=B57460.166169275826547 (code B ref 57460); Sun, 28 Aug 2022 13:20:06 +0000 Received: (at 57460) by debbugs.gnu.org; 28 Aug 2022 13:19:18 +0000 Received: from localhost ([127.0.0.1]:57779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSIC6-0006tz-Cw for submit@debbugs.gnu.org; Sun, 28 Aug 2022 09:19:18 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:47017) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSIBz-0006sq-82 for 57460@debbugs.gnu.org; Sun, 28 Aug 2022 09:19:11 -0400 Received: from hermia.goebel-consult.de ([46.87.137.46]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MOQu6-1omaCV2VnK-00Pr3O for <57460@debbugs.gnu.org>; Sun, 28 Aug 2022 15:19:05 +0200 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id BD01265A38; Sun, 28 Aug 2022 15:18:55 +0200 (CEST) From: Hartmut Goebel Date: Sun, 28 Aug 2022 15:18:33 +0200 Message-Id: X-Mailer: git-send-email 2.30.4 In-Reply-To: References: MIME-Version: 1.0 X-Provags-ID: V03:K1:Du4Zrg9rIFy8a5omSPBTdIu16A7LPLuKZmiX76MKtlB6ruDXH4i NPYOOWvR0fJuBmZwIJXIHXYvza/4qCmghH0ZZ4KGt32Fu6MUHTlunbU77Hbx/Q37f5ATJv+ U+aBTYnYIuRtDg6mTydmCnj7HFKfBJgiE+V+ZbaNzn1vHPX8Bqn3ZOZlI5sTjGMrkHVdHIN ZG77CGMV2OGZK9NnBjJMw== X-UI-Out-Filterresults: notjunk:1;V03:K0:Y4goSQ6FBEM=:mv8NKkL3t2Z2yOqTooo5Wu qjaF82nTs4rYhgLhLrHLRIYSxZfuKxpp0J4z7Zhq5vv49zy1OtfWteZ+ARE6+kalwFSxBVUMw Kdfo/DCuYmtRBRaaXYgERVWrJKEs9UFYgIAoIa9yKwMLNCv0ATlCep/4UYllu336iKLcbjdaI UBSO9xGSYRhfl5+PRyL3gPZw5bBxChAbXn/cWlrgkvo6/8eBLB2ZqP7uCSfWydDmCyRLg+6io VsT8161VW7z/CecKpO78hgyNweaLUf2FvN2Rg2rscY2sTMSKwtlsFp6B14rKxoL+2YKaGzbRS qU/u1jEGezDxt1cS9R/QU+PHID/v9Y4MTaFWQzk76zI69d5tgJnMoMaHMYTBenpozpp1uIPlk AkhhYkFo7xgE6hqti29Ooflwi0PFmpDbvDbEwB0jnbI1KwlvqiVHOwKFpChSLOwYMdWXI91ly 2TLyGh0QTbWVjEI6MThhCzcqydAsN20Mo0brv7/2JIiTmE0PEB1AZvwMKXm5Dw9SPvwafw5fx WWDHqD+lA3xi24hIG3khMpqwg0k85YI32kweWgPXntwW1pWskMJVMIQWxPjkC200XsdLc3EdA YLkx/PSKU11SoiYy8JYldRv3nXIr8bKK72caikRBAhj0D6IyehDB9e4TR2eOOhxM92XIWyWk8 WjJoEoYbQYylKMrXtsqNIrVdpDR5ILCz1an338m0X6vEdlLnfTuXG4axFqqFWYMTFTFAiWeQz zw3wpD/8IvafHDP3bbUnjfqIt2/AkShUhQVWRGuVm6vckalUG4PV/JoiWyI= 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * guix/import/egg.scm(latest-release): Rename to (import-release), add keyword-argument 'version'. If version is given, return an upstream-source for this version. --- guix/import/egg.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/guix/import/egg.scm b/guix/import/egg.scm index aa689f8d84..3897de5acf 100644 --- a/guix/import/egg.scm +++ b/guix/import/egg.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2021 Tobias Geerinckx-Rice ;;; Copyright © 2021 Sarah Morgensen +;;; Copyright © 2022 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -333,10 +334,10 @@ not work." ;;; Updater. ;;; -(define (latest-release package) +(define* (import-release package #:key (version #f)) "Return an @code{} for the latest release of PACKAGE." (let* ((egg-name (guix-package->egg-name package)) - (version (find-latest-version egg-name)) + (version (or version (find-latest-version egg-name))) (source-url (egg-uri egg-name version))) (upstream-source (package (package-name package)) @@ -348,6 +349,6 @@ not work." (name 'egg) (description "Updater for CHICKEN egg packages") (pred egg-package?) - (import latest-release))) + (import import-release))) ;;; egg.scm ends here