mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
services/configuration: Fix case where sub-documentation is nonexistent.
Commit 766ad072ad
introduced a regression
where (configuration->documentation 'libvirt-configuration) would raise:
(configuration->documentation 'libvirt-configuration)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): #f
* gnu/services/configuration.scm (generate-documentation): Re-introduce
previous handling of sub-documentation.
Change-Id: If2dbb59db5d22da221abfa2ffe7889854528a49c
This commit is contained in:
parent
96ac18dfeb
commit
8b6e9acc26
1 changed files with 6 additions and 5 deletions
|
@ -462,11 +462,12 @@ DEFAULT."
|
|||
,@(append-map
|
||||
generate
|
||||
(filter-map
|
||||
(match-lambda
|
||||
((name config)
|
||||
(and (eq? name field-name)
|
||||
config)))
|
||||
sub-documentation)))))
|
||||
(match-lambda
|
||||
((name config)
|
||||
(and (eq? name field-name)
|
||||
config)))
|
||||
(or (assq-ref sub-documentation field-name)
|
||||
'()))))))
|
||||
fields)))))))
|
||||
(stexi->texi `(*fragment* . ,(generate documentation-name))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue