aboutsummaryrefslogtreecommitdiff
path: root/src/property/apt.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-04 23:45:50 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-04 23:45:50 -0700
commitf37067b02b0ef807200fe12246dba499829d1f64 (patch)
tree0d3c15d133c32c5f238d7f42a0ab04fdea3a9480 /src/property/apt.lisp
parent24a1cef03349e64db368a297ba4d361d3734895d (diff)
downloadconsfigurator-f37067b02b0ef807200fe12246dba499829d1f64.tar.gz
tweak lambda lists & export APT:{ALL,NONE}-INSTALLED-P
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/apt.lisp')
-rw-r--r--src/property/apt.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp
index 7822ed9..c573851 100644
--- a/src/property/apt.lisp
+++ b/src/property/apt.lisp
@@ -43,7 +43,7 @@
(declare (ignore packages))
(os:required 'os:debianlike))
(:check
- (all-installed-p packages))
+ (apply #'all-installed-p packages))
(:apply
(with-maybe-update (apt-get :inform "-y" "install" packages))))
@@ -54,7 +54,7 @@
(declare (ignore packages))
(os:required 'os:debianlike))
(:check
- (none-installed-p packages))
+ (apply #'none-installed-p packages))
(:apply
(apt-get :inform "-y" "remove" packages)))
@@ -128,14 +128,14 @@ E.g. (APT:SERVICE-INSTALLED-RUNNING \"apache2\")."
(define-constant apt-cache-policy-installed #?/^\s+Installed:\s+(?!\(none\))/
:test #'string=)
-(defun all-installed-p (packages)
+(defun all-installed-p (&rest packages)
(loop with n = 0
for line in (apt-cache-policy packages)
when (re:scan apt-cache-policy-installed line)
do (incf n)
finally (return (= n (length packages)))))
-(defun none-installed-p (packages)
+(defun none-installed-p (&rest packages)
(loop for line in (apt-cache-policy packages)
never (re:scan apt-cache-policy-installed line)))