summary refs log tree commit diff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2021-06-08 22:44:53 +0200
committerLudovic Courtès <ludo@gnu.org>2021-06-08 23:28:04 +0200
commit7ccf416dd00b9842d7f9801ae8d2438e92a4cdfe (patch)
tree5f780a5a771b871e1e20a62b2b4b276625187c64
parentac51eb1125aab078c1a59c002695dc6dd56bd62c (diff)
downloadguix-7ccf416dd00b9842d7f9801ae8d2438e92a4cdfe.tar.gz
transformations: '--with-latest' correctly handles already-latest case.
Previously, '--with-latest' would wrongfully print:

  warning: could not determine latest upstream release of 'xyz'

when 'xyz' is already the latest version.  This fixes that.

* guix/transformations.scm (transform-package-latest): Use
'package-latest-release' instead of 'package-latest-release*'.
-rw-r--r--guix/transformations.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/transformations.scm b/guix/transformations.scm
index 4e9260350c..b0c09a0c92 100644
--- a/guix/transformations.scm
+++ b/guix/transformations.scm
@@ -25,7 +25,7 @@
   #:autoload   (guix download) (download-to-store)
   #:autoload   (guix git-download) (git-reference? git-reference-url)
   #:autoload   (guix git) (git-checkout git-checkout? git-checkout-url)
-  #:autoload   (guix upstream) (package-latest-release*
+  #:autoload   (guix upstream) (package-latest-release
                                 upstream-source-version
                                 upstream-source-signature-urls)
   #:use-module (guix utils)
@@ -518,7 +518,7 @@ additional patches."
   "Return a procedure that rewrites package graphs such that those in SPECS
 are replaced by their latest upstream version."
   (define (package-with-latest-upstream p)
-    (let ((source (package-latest-release* p)))
+    (let ((source (package-latest-release p)))
       (cond ((not source)
              (warning
               (G_ "could not determine latest upstream release of '~a'~%")