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
1 changed files with 3 additions and 0 deletions

View File

@ -772,6 +772,9 @@ is #f, the latest known upstream 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)