From b73e85186a8c08dac568c12b134af1c8bd0d16b6 Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Tue, 28 Jun 2022 21:07:05 +0200 Subject: egg --- guix/import/egg.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guix/import/egg.scm b/guix/import/egg.scm index 52196583c4..e4289618cb 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* (latest-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)) -- cgit 1.4.1