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.
This commit is contained in:
Ludovic Courtès 2023-01-07 15:34:06 +01:00
parent 137b91f03b
commit 20c923c40d
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -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)