aboutsummaryrefslogtreecommitdiff
path: root/src/property/apt.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-03-11 14:57:29 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-03-11 16:25:36 -0700
commitf1cdc293b33b673de4813c71dc4a38337edff12e (patch)
tree94a43d6c26f5bbf299fa295d984d91839b397c18 /src/property/apt.lisp
parentf7aea946fad9ff801f9a7507a6afce000228507c (diff)
downloadconsfigurator-f1cdc293b33b673de4813c71dc4a38337edff12e.tar.gz
replace uses of CALL-WITH-OS & drop the function
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/apt.lisp')
-rw-r--r--src/property/apt.lisp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp
index 755ec7f..41ec98d 100644
--- a/src/property/apt.lisp
+++ b/src/property/apt.lisp
@@ -219,15 +219,16 @@ only upgrade Debian stable."
(proxy "http://[::1]:3142"))
(defun get-mirrors ()
- (or (get-hostattrs :apt.mirror) (call-with-os #'get-default-mirrors)))
+ (or (get-hostattrs :apt.mirror)
+ (get-default-mirrors (get-hostattrs-car :os))))
(defmethod get-default-mirrors ((os os:debian))
'("http://deb.debian.org/debian"))
(defproplist standard-sources.list :posix ()
(:desc "Standard sources.list")
- (file:has-content "/etc/apt/sources.list"
- (call-with-os #'standard-sources-for)))
+ (file:has-content
+ "/etc/apt/sources.list" (standard-sources-for (get-hostattrs-car :os))))
(defmethod standard-sources-for ((os os:debian))
(let* ((suite (os:debian-suite os))