diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-08-20 13:01:56 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-08-20 13:01:56 -0700 |
commit | 4c95f057493ad4bc080e34efec8d022132404260 (patch) | |
tree | a9e0028aa0919001b3c5c331d8cfa99f30d5ea2a | |
parent | 8b0b1287ab124a908bb5414a7578eabc66b149bf (diff) | |
download | consfigurator-4c95f057493ad4bc080e34efec8d022132404260.tar.gz |
APT:PROXY: make unapplicable
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | src/property/apt.lisp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/property/apt.lisp b/src/property/apt.lisp index d73dbdb..f79f87c 100644 --- a/src/property/apt.lisp +++ b/src/property/apt.lisp @@ -199,13 +199,11 @@ only upgrade Debian stable." (:desc #?"Uses parent's apt mirror(s), if any") (aand (get-parent-hostattrs :apt.mirrors) `(mirrors ,@it))) -(defprop proxy :posix (uri) +(defproplist proxy :posix (uri) (:desc #?"${uri} apt proxy selected") - (:hostattrs - (pushnew-hostattr :apt.proxy uri)) - (:apply - (file:has-content "/etc/apt/apt.conf.d/20proxy" - (format nil "Acquire::HTTP::Proxy \"~A\";~%" uri)))) + (:hostattrs (pushnew-hostattr :apt.proxy uri)) + (file:exists-with-content "/etc/apt/apt.conf.d/20proxy" + (format nil "Acquire::HTTP::Proxy \"~A\";~%" uri))) (defproplist uses-parent-proxy :posix () (:desc #?"Uses parent's apt proxy") |