me
/
guix
Archived
1
0
Fork 0
This repository has been archived on 2024-08-07. You can view files and clone it, but cannot push or open issues/pull-requests.
guix/gnu
Brian Cully f66fa5f917
gnu: services: Revert to deleting and updating all matching services
This patch reverts the behavior introduced in
1819512073 which caused ‘modify-services’
clauses to only match a single instance of a service.

We will now match all service instances when doing a deletion or update, while
still raising an exception when trying to match against a service that does
not exist in the services list, or which was deleted explicitly by a ‘delete’
clause (or an update clause that returns ‘#f’ for the service).

Fixes: #64106

* gnu/services.scm (%modify-services): New procedure.
(modify-services): Use it.
(apply-clauses): Add DELETED-SERVICES argument, change to modify one service
at a time.
* tests/services.scm
("modify-services: delete then modify")
("modify-services: modify then delete")
("modify-services: delete multiple services of the same type")
("modify-services: modify multiple services of the same type"): New tests.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Modified-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2023-08-31 23:31:50 -04:00
..
bootloader
build Revert "gnu: system: Add home-directory-permissions field to <user-account>." 2023-08-20 02:00:00 +02:00
home home: services: dicod, syncthing: Import (gnu home services shepherd). 2023-08-29 11:42:16 +02:00
installer
machine
packages gnu: texlive-tpslifonts: Remove duplicate definition. 2023-08-31 22:07:51 +02:00
services services: nar-herder: Specify a working directory. 2023-08-26 12:19:14 +01:00
system Revert "gnu: system: Add home-directory-permissions field to <user-account>." 2023-08-20 02:00:00 +02:00
tests image: Add mbr-raw-image-type and use by default. 2023-08-25 14:24:21 +02:00
artwork.scm
bootloader.scm
ci.scm ci: Really honor system type for manifests. 2023-08-21 19:16:05 +02:00
compression.scm
home.scm
image.scm
installer.scm
local.mk gnu: vtk-7: Fix build. 2023-08-31 18:01:52 +08:00
machine.scm
packages.scm
services.scm gnu: services: Revert to deleting and updating all matching services 2023-08-31 23:31:50 -04:00
system.scm
tests.scm