[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/11: pull: '-l' displays channel news.
From: |
guix-commits |
Subject: |
08/11: pull: '-l' displays channel news. |
Date: |
Mon, 23 Sep 2019 05:08:34 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 192ee02aeb3d2f6d14ea93cfc43b30dd93df80e8
Author: Ludovic Courtès <address@hidden>
Date: Sun Sep 15 23:55:19 2019 +0200
pull: '-l' displays channel news.
* 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 d734df5..4a4756d 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -272,12 +272,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 news 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)))
@@ -614,6 +614,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))))))
- branch master updated (acedaec -> 90ca791), guix-commits, 2019/09/23
- 01/11: pull: '--news' shows the list of channels added or removed., guix-commits, 2019/09/23
- 02/11: git: 'update-cached-checkout' avoids network access when unnecessary., guix-commits, 2019/09/23
- 06/11: ui: Add 'current-message-language'., guix-commits, 2019/09/23
- 03/11: git: Add 'commit-difference'., guix-commits, 2019/09/23
- 05/11: channels: Allow news entries to refer to a tag., guix-commits, 2019/09/23
- 04/11: channels: Add support for a news file., guix-commits, 2019/09/23
- 08/11: pull: '-l' displays channel news.,
guix-commits <=
- 10/11: Add '.guix-channel' file., guix-commits, 2019/09/23
- 07/11: pull: Display channel news., guix-commits, 2019/09/23
- 09/11: pull: Display news titles directly upon 'pull'., guix-commits, 2019/09/23
- 11/11: etc: Add channel news file., guix-commits, 2019/09/23