From: "Ludovic Courtès" <ludo@gnu.org>
To: 60629@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>, ludo@gnu.org
Subject: [bug#60629] [PATCH 2/3] transformations: Let users know when '--with-latest' has no effect.
Date: Sat, 7 Jan 2023 16:06:48 +0100 [thread overview]
Message-ID: <20230107150649.4488-2-ludo@gnu.org> (raw)
In-Reply-To: <20230107150649.4488-1-ludo@gnu.org>
* 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 d6a2ef0708..b8e2b3d52a 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
(unless (pair? (upstream-source-signature-urls source))
--
2.38.1
next prev parent reply other threads:[~2023-01-07 15:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-07 15:04 [bug#60629] [PATCH 0/3] Add '--with-version' package transformation Ludovic Courtès
2023-01-07 15:06 ` [bug#60629] [PATCH 1/3] transformations: Add '--with-version' Ludovic Courtès
2023-01-07 15:06 ` Ludovic Courtès [this message]
2023-01-07 15:06 ` [bug#60629] [PATCH 3/3] DRAFT news: Add entry for '--with-version' Ludovic Courtès
2023-01-09 18:13 ` pelzflorian (Florian Pelz)
2023-01-07 16:05 ` [bug#60629] [PATCH 0/3] Add '--with-version' package transformation Hartmut Goebel
2023-01-12 15:49 ` Simon Tournier
2023-01-13 11:12 ` Ludovic Courtès
2023-01-13 17:00 ` Simon Tournier
2023-01-16 12:45 ` bug#60629: " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230107150649.4488-2-ludo@gnu.org \
--to=ludo@gnu.org \
--cc=60629@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.