From: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
To: 44650@debbugs.gnu.org
Subject: bug#44650: Do not suggest `guix pull --news' after first pull
Date: Sun, 15 Nov 2020 16:17:17 +0100 [thread overview]
Message-ID: <20201115151717.myo6hcb5prambmho@pelzflorian.localdomain> (raw)
In-Reply-To: <20201115015630.aknnrsoggtsabmfo@pelzflorian.localdomain>
[-- Attachment #1: Type: text/plain, Size: 788 bytes --]
On Sun, Nov 15, 2020 at 02:56:30AM +0100, pelzflorian (Florian Pelz) wrote:
> - (when previous
> + (if previous
> (let ((old-channels (profile-channels previous))
> (new-channels (profile-channels profile)))
> ;; Find the channels present in both PROFILE and PREVIOUS, and print
> @@ -405,7 +405,8 @@ previous generation. Return true if there are news to display."
> #:concise? #t)))
> channels))
>
> - (any ->bool more?))))))
> + (any ->bool more?))))
> + #f))
I changed the patch to use `and` instead of `if` (attached). I
confirmed that channel news display fine on a later `guix pull`.
Should I add a copyright line? I believe no.
Regards,
Florian
[-- Attachment #2: 0001-pull-Do-not-suggest-running-guix-pull-news-on-the-fi.patch --]
[-- Type: text/plain, Size: 1092 bytes --]
From 8b1557004f618a47d4bea3a65a5b88c4cb718c4c Mon Sep 17 00:00:00 2001
From: Florian Pelz <pelzflorian@pelzflorian.de>
Date: Sat, 14 Nov 2020 23:36:52 +0100
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Subject: [PATCH] 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 bb1b560a22..7fd8b3f1a4 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
--
2.29.1
next prev parent reply other threads:[~2020-11-15 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-15 1:56 bug#44650: Do not suggest `guix pull --news' after first pull pelzflorian (Florian Pelz)
2020-11-15 15:17 ` pelzflorian (Florian Pelz) [this message]
2020-11-16 11:35 ` Ludovic Courtès
2020-11-16 13:55 ` pelzflorian (Florian Pelz)
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=20201115151717.myo6hcb5prambmho@pelzflorian.localdomain \
--to=pelzflorian@pelzflorian.de \
--cc=44650@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.