From 20c923c40d3eb0057498c7c6b7f64f5c634944fb Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 7 Jan 2023 15:34:06 +0100 Subject: transformations: Let users know when '--with-latest' has no effect. * guix/transformations.scm (package-with-upstream-version): Print a message when VERSION is false and SOURCE has the same version as P. --- guix/transformations.scm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'guix') diff --git a/guix/transformations.scm b/guix/transformations.scm index 8853f390ce..8ff472ad21 100644 --- a/guix/transformations.scm +++ b/guix/transformations.scm @@ -772,6 +772,9 @@ (define* (package-with-upstream-version p #:optional version) p) ((string=? (upstream-source-version source) (package-version p)) + (unless version + (info (G_ "~a is already the latest version of '~a'~%") + (package-version p) (package-name p))) p) (else (when (version>? (package-version p) -- cgit v1.2.3