guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/03: transformations: Let users know when '--with-latest' has no effec


From: guix-commits
Subject: 02/03: transformations: Let users know when '--with-latest' has no effect.
Date: Mon, 16 Jan 2023 07:43:18 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 20c923c40d3eb0057498c7c6b7f64f5c634944fb
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Jan 7 15:34:06 2023 +0100

    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(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]