GNU bug report logs -
#73202
[PATCH] Preparation for bootloader rewrite.
Previous Next
Reported by: Herman Rimm <herman <at> rimm.ee>
Date: Thu, 12 Sep 2024 17:00:02 UTC
Severity: normal
Tags: patch
Fix blocked by 69343: [PATCH 00/12] Simplify bootloader data structures and procedures
Full log
Message #86 received at 73202 <at> debbugs.gnu.org (full text, mbox):
* guix/records.scm (wrap-element): Add procedure.
Change-Id: If121c5d856e815776830282a0701a73e5ae2a7e7
---
guix/records.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/guix/records.scm b/guix/records.scm
index c084441441..b521a59257 100644
--- a/guix/records.scm
+++ b/guix/records.scm
@@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2012-2024 Ludovic Courtès <ludo <at> gnu.org>
;;; Copyright © 2018 Mark H Weaver <mhw <at> netris.org>
+;;; Copyright © 2024 Lilah Tascheter <lilah <at> lunabee.space>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -31,6 +32,8 @@ (define-module (guix records)
alist->record
object->fields
recutils->alist
+ wrap-element
+
match-record
match-record-lambda))
@@ -606,6 +609,10 @@ (define (recutils->alist port)
(else
(error "unmatched line" line))))))))
+(define (wrap-element x)
+ "Sanitize a record field value X to a list."
+ (if (list? x) x (list x)))
+
;;;
;;; Pattern matching.
--
2.45.2
This bug report was last modified 113 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.