[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/07: channels: 'channel->code' emits 'channel' field only when necessa
From: |
guix-commits |
Subject: |
02/07: channels: 'channel->code' emits 'channel' field only when necessary. |
Date: |
Mon, 23 Jan 2023 17:54:36 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e6c01420dbe88fc948c0b6755edbdc6a2ad18fe0
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 23 18:21:44 2023 +0100
channels: 'channel->code' emits 'channel' field only when necessary.
* guix/channels.scm (channel->code): Emit 'commit' field only when it is
true.
---
guix/channels.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix/channels.scm b/guix/channels.scm
index d84228c47e..40cbc4bb3a 100644
--- a/guix/channels.scm
+++ b/guix/channels.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2018-2022 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2018-2023 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2018 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
@@ -1057,7 +1057,9 @@ true, include its introduction, if any."
(name ',(channel-name channel))
(url ,(channel-url channel))
(branch ,(channel-branch channel))
- (commit ,(channel-commit channel))
+ ,@(if (channel-commit channel)
+ `((commit ,(channel-commit channel)))
+ '())
,@(if intro
`((introduction (make-channel-introduction
,(channel-introduction-first-signed-commit intro)
- branch master updated (9e4f1f8c33 -> f912d5c740), guix-commits, 2023/01/23
- 02/07: channels: 'channel->code' emits 'channel' field only when necessary.,
guix-commits <=
- 01/07: import: opam: Do not crash when description is missing., guix-commits, 2023/01/23
- 05/07: doc: Fix incorrect use of @defvar., guix-commits, 2023/01/23
- 06/07: doc: Use @defvar instead of @defvr for Scheme variables., guix-commits, 2023/01/23
- 07/07: doc: Substitute @deffn usage with @defvar for Scheme variables., guix-commits, 2023/01/23
- 04/07: doc: Document the 'release-monitoring-url' package property., guix-commits, 2023/01/23
- 03/07: gnu: flint: Add 'release-monitoring-url' property., guix-commits, 2023/01/23