diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-18 11:40:24 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-06-18 11:40:24 -0700 |
commit | d835070f706e341cb3dd3daee5cb7a7d31c0c4da (patch) | |
tree | 03bfa627d591af9ca4cdc39811bd0dd2e8f9b07a /src/property/apt.lisp | |
parent | e543366cf23caeca534e687d5aae89b1300c1359 (diff) | |
download | consfigurator-d835070f706e341cb3dd3daee5cb7a7d31c0c4da.tar.gz |
replace APT:USE-PARENT-MIRROR with APT:USE-PARENT-MIRRORS
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/property/apt.lisp')
-rw-r--r-- | src/property/apt.lisp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp index dbdcbf2..cb62df4 100644 --- a/src/property/apt.lisp +++ b/src/property/apt.lisp @@ -162,10 +162,12 @@ only upgrade Debian stable." (:hostattrs (pushnew-hostattrs :apt.mirror uri))) -(defproplist uses-parent-mirror :posix () - (:desc #?"Uses parent's apt mirror") - (mirror (or (get-parent-hostattrs-car :apt.mirror) - (failed-change "Parent has no apt mirror")))) +(defpropspec uses-parent-mirrors :posix () + (:desc #?"Uses parent's apt mirror(s), if any") + (let ((mirrors (get-parent-hostattrs :apt-mirror))) + (and mirrors + `(eseqprops + ,@(loop for mirror in mirrors collect `(mirror ,mirror)))))) (defprop proxy :posix (uri) (:desc #?"${uri} apt proxy selected") |