mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 13:58:15 -05:00
pull: '-l' displays channel news.
* guix/scripts/pull.scm (display-channel-news): Make 'previous' a parameter. (process-query)[list-generations]: Call 'display-channel-news'.
This commit is contained in:
parent
7faffdc2d5
commit
192ee02aeb
1 changed files with 8 additions and 6 deletions
|
@ -272,12 +272,12 @@ (define* (display-channel-specific-news new old
|
|||
(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 @@ (define (list-generations profile numbers)
|
|||
((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))))))
|
||||
|
|
Loading…
Reference in a new issue