GNU bug report logs -
#60582
[PATCH] Properly format list of packages & sync lightdm documentation.
Previous Next
Reported by: Bruno Victal <mirai <at> makinata.eu>
Date: Thu, 5 Jan 2023 21:03:01 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 60582 <at> debbugs.gnu.org (full text, mbox):
* gnu/services/configuration.scm
(generate-documentation): Format a list of packages by their names.
---
Simplified condition.
I can't reproduce the issue that was supposed to be resolved by that conditional.
I'm guessing I used to have a different format string back then.
gnu/services/configuration.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index 6b0291dc00..4017cd0fa8 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -35,6 +35,7 @@ (define-module (gnu services configuration)
#:autoload (texinfo serialize) (stexi->texi)
#:use-module (ice-9 curried-definitions)
#:use-module (ice-9 match)
+ #:use-module (ice-9 format)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-34)
#:use-module (srfi srfi-35)
@@ -370,6 +371,8 @@ (define (generate-documentation documentation documentation-name)
(cond
((package? val)
(symbol->string (package->symbol val)))
+ (((list-of package?) val)
+ (format #f "(~{~a~^ ~})" (map package->symbol val)))
(else (str val))))
`(entry (% (heading
base-commit: 0f85081ed1d99be57d3544e0307e7fa9ca043be9
--
2.38.1
This bug report was last modified 2 years and 99 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.