guix-commits
[Top][All Lists]
Advanced

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

branch version-1.2.0 updated: pull: Do not suggest running `guix pull --


From: guix-commits
Subject: branch version-1.2.0 updated: pull: Do not suggest running `guix pull --news' on the first run.
Date: Mon, 16 Nov 2020 08:48:51 -0500

This is an automated email from the git hooks/post-receive script.

pelzflorian pushed a commit to branch version-1.2.0
in repository guix.

The following commit(s) were added to refs/heads/version-1.2.0 by this push:
     new 29ed17d  pull: Do not suggest running `guix pull --news' on the first 
run.
29ed17d is described below

commit 29ed17d6345d30b0646f0a9b63ab201e0e6871ec
Author: Florian Pelz <pelzflorian@pelzflorian.de>
AuthorDate: Sat Nov 14 23:36:52 2020 +0100

    pull: Do not suggest running `guix pull --news' on the first run.
    
    * guix/scripts/pull.scm (display-channel-news-headlines): If there
    are no news to display, return false instead of <unspecified>.
---
 guix/scripts/pull.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index bb1b560..7fd8b3f 100644
--- a/guix/scripts/pull.scm
+++ b/guix/scripts/pull.scm
@@ -385,7 +385,7 @@ previous generation.  Return true if there are news to 
display."
     (and=> (relative-generation profile -1)
            (cut generation-file-name profile <>)))
 
-  (when previous
+  (and previous
     (let ((old-channels (profile-channels previous))
           (new-channels (profile-channels profile)))
       ;; Find the channels present in both PROFILE and PREVIOUS, and print



reply via email to

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