[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#60582] [PATCH 1/2] services: configuration: Format a list of packag
From: |
Bruno Victal |
Subject: |
[bug#60582] [PATCH 1/2] services: configuration: Format a list of packages by their names. |
Date: |
Thu, 5 Jan 2023 21:06:10 +0000 |
* gnu/services/configuration.scm
(generate-documentation): Format a list of packages by their names.
---
gnu/services/configuration.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services/configuration.scm b/gnu/services/configuration.scm
index 6b0291dc00..16e2380709 100644
--- a/gnu/services/configuration.scm
+++ b/gnu/services/configuration.scm
@@ -370,6 +370,9 @@ (define (show-default val)
(cond
((package? val)
(symbol->string (package->symbol val)))
+ ((and ((list-of package?) val) (not (null? val)))
+ (format #f "(~{~a~^ ~})"
+ (map package->symbol val)))
(else (str val))))
`(entry (% (heading
--
2.38.1