[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#37413] [PATCH 7/9] pull: '-l' displays channel news.
From: |
Ludovic Courtès |
Subject: |
[bug#37413] [PATCH 7/9] pull: '-l' displays channel news. |
Date: |
Mon, 16 Sep 2019 00:21:04 +0200 |
* guix/scripts/pull.scm (display-channel-news): Make 'previous' a
parameter.
(process-query)[list-generations]: Call 'display-channel-news'.
---
guix/scripts/pull.scm | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 8edff1a502..91ffd0ab98 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -251,12 +251,12 @@ and NEW are <channel> records with a proper 'commit'
field."
(for-each (cut display-news-entry <> language port) entries)
(newline port)))))))
-(define (display-channel-news profile)
- "Display new about the channels of PROFILE "
- (define previous
- (and=> (relative-generation profile -1)
- (cut generation-file-name profile <>)))
-
+(define* (display-channel-news profile
+ #:optional
+ (previous
+ (and=> (relative-generation profile -1)
+ (cut generation-file-name profile <>))))
+ "Display news about the channels of PROFILE compared to PREVIOUS."
(when previous
(let ((old-channels (profile-channels previous))
(new-channels (profile-channels profile)))
@@ -586,6 +586,8 @@ display long package lists that would fill the user's
screen."
((first second rest ...)
(display-profile-content-diff profile
first second)
+ (display-channel-news (generation-file-name profile second)
+ (generation-file-name profile first))
(loop (cons second rest)))
((_) #t)
(() #t))))))
--
2.23.0
- [bug#37413] [PATCH 0/9] Channel news distribution mechanism, Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 1/9] pull: '--news' shows the list of channels added or removed., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 2/9] git: 'update-cached-checkout' avoids network access when unnecessary., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 5/9] ui: Add 'current-message-language'., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 7/9] pull: '-l' displays channel news.,
Ludovic Courtès <=
- [bug#37413] [PATCH 6/9] pull: Display channel news., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 3/9] git: Add 'commit-difference'., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 8/9] Add '.guix-channel' file., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 9/9] DRAFT etc: Add channel news file., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 4/9] channels: Add support for a news file., Ludovic Courtès, 2019/09/15
- [bug#37413] [PATCH 0/9] Channel news distribution mechanism, Ricardo Wurmus, 2019/09/16