[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop
[bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop-environments.
Tue, 24 Mar 2020 11:31:58 +0100
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)
Mathieu Othacehe <address@hidden> skribis:
> * gnu/installer/tests.scm (choose-services): Turn desktop-environments list
> into a choose-desktop-environment procedure. This way, it is easier to select
> all desktop-environments or none, in the same way as choose-network-service?
> and choose-network-management-tool? arguments.
> + (let ((services* (filter choose-desktop-environment? services)))
> + (set! desktop-environments services*)
> + services*))
Maybe rename ‘services*’ to ‘desktops’?
‘set!’ hurts my eyes :-) but let’s get over it. Eventually we can
change convert to run expressions in ‘%state-monad’ or something.
[bug#40207] [PATCH 1/2] installer: tests: Use a filter to select desktop-environments.,
Ludovic Courtès <=